Skip to content

Integrate_forces() example missing the point #10029

@Griiimon

Description

@Griiimon

V4.3

The code snippet meant to demonstrate how _integrate_forces() can be used to make direct changes to Rigidbody properties, that otherwise would interfere with the physics simulation, doesn't overwrite any of those properties. In fact, all the code could run in _physics_process() as well, so it's completely missing the point of the description above.

As an example it could change the rotation of the body's state transform directly when steering. Then using _integrate_forces() would at least be necessary in this context.

Docs Page

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:manualIssues and PRs related to the Manual/Tutorials section of the documentationcontent:example codeIssues and PRs involving code examplesenhancementtopic:physics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions