-
Since this Is it mainly an optimization, to allow someone to enable the If it's purely an optimization, and given that enabling CCD is an opt-in per-body property in Godot, would it make sense to just set this setting to zero (or at least a very low value) and perhaps not expose the setting at all, instead of having users individually come to the realization that the CCD test isn't running in some cases, despite enabling it, and then one way or another find their way to this project setting? As best I can tell, Godot Physics has no threshold equivalent to this for its CCD, but I vaguely recall seeing various issues reported about its CCD, so I'm not sure how much weight that holds. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's not only a performance optization, if you change
You can see the difference. Normal linear cast treshold: normal.mp4Setting it to zero: zero.mp4You can see that in this case there is a weird hop on the side that touches the floor first (restitution = 0 so there should not be a hop). This is because motion quality JoltPhysics/Jolt/Physics/PhysicsSystem.cpp Lines 1523 to 1534 in 1bcbe51 |
Beta Was this translation helpful? Give feedback.
It's not only a performance optization, if you change
SimpleTest
to:You can see the difference. Normal linear cast treshold:
normal.mp4
Setting it to zero:
zero.mp4