Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FPBDCollisionConstraint
Description
For CCD constraints, a transient flag (reset every frame) that is used to both enable/disable CCD sweeps for the frame, and to report whether the sweep was run and the results retained. It will be set to false if the bodies are moving less than the CCD threshold this tick.
If this is true in a collision callback then: 1) a CCD sweep was performed; 2) a CCD impact was detected; and 3) the collision is being treated as a CCD contact. The bodies will be moved back to first CCD contact.
NOTE: If a sweep is performed and a hit detected, but the resultant contact is shallow enough to be handled by the standard collision solver path, this flag is set to false and no rollback will be performed.
| Name | GetCCDSweepEnabled |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/PBDCollisionConstraint.h |
| Include Path | #include "Chaos/Collision/PBDCollisionConstraint.h" |
bool GetCCDSweepEnabled() const