Skip to content

User forces are not auto cleared after physics step #903

@newDINO

Description

@newDINO

Documents say that forces are automatically cleared each physics step, but there doesn't seem to be code doing it. For example, I checked the references of reset_forces() using vscode rust-analyzer, and there is no usage within rapier code base. I also checked the reference of Rigidbody.forces and RigidbodyForces.user_force and there doesn't seem to be any place where they are cleared except reset_forces.

I wonder if this is an error of the documents or the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions