Force CCD on "slow" moving rigid body #91
-
As described in the documentation : PhysX 5.1.2 documentation - Advanced collision detection
In the context of a simple arcade game with few moving actors, the performance loss of forcing CCD (or tweaking the minimum velocity to a lower number) on an actor might be worth the trade to reduce visible overlap in collisions. For instance, i'm getting this kind of overlap from the discreet collision solver, even tho the rigid body has been marked to use CCD : If I increase the speed, I eventually get to the CCD min velocity threshold and collisions becomes more accurate : Is there any flag or tweak that can be used to affect the "automatic calculated velocity threshold" or is there any plan to expose more control over this behavior in the futur? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
PxSceneDesc::ccdThreshold comes to mind. Otherwise the page you link to has a "Tuning CCD" paragraph just afterwards. You can also try switching to "speculative contacts", which is another form of CCD that might work better in your case (see that same page again, a bit later). |
Beta Was this translation helpful? Give feedback.
PxSceneDesc::ccdThreshold comes to mind. Otherwise the page you link to has a "Tuning CCD" paragraph just afterwards. You can also try switching to "speculative contacts", which is another form of CCD that might work better in your case (see that same page again, a bit later).