Skip to content

The linear damping of PxRigidBody #241

Answered by preist-nvidia
SHiziw asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @SHiziw,

Linear damping does not apply a force proportional to velocity, but scales the (unconstrained, pre-integrated) velocities each time step with

max(0, 1 - linear_damping * dt)

see, for example, here: https://github.com/NVIDIA-Omniverse/PhysX/blob/main/physx/source/lowleveldynamics/src/DyBodyCoreIntegrator.h#L62

I agree that the documentation does not make this clear enough, I'll update it.
Philipp

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SHiziw
Comment options

Answer selected by SHiziw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants