Continuous Collision Detection

    CDD is disabled by default. To enable it, set the property of the RigidBody component of the object to :

    Penetration usually occurs in objects that are moving at high speed, such as bullets. This is due to the fact that computer simulations are based on discrete forms, and when an object is moving too fast, the energy of a single integration is too large, which may cause the object to pass through another object that should have collided with it, as shown in the following figure:

    The ball moves from time T0 to time T1, missing the black square that should have collided at time T0.5. This is a typical linear penetration phenomenon caused by too much linear velocity.

    • Only dynamic rigidbodies are supported.
    • Only convex shapes are supported.
    • For performance reasons, CCD events are only supported for types starting with .
    • When the physics engine is set to Bullet, only single shape objects (containing only one collision component) are supported, and the property of the collision component needs to be set to 0.