Navigation
API > API/Runtime > API/Runtime/Chaos
Allows the user to modify the results of CCD collision detection prior to the CCD rewind being applied. This is in addition to the midphase modification phase which happens before collision detection has been run, and the contact modifier phase which happens after we have rewound
The CCD "contact" details reported here do not necessarily represent the contact details that will be used in the contact solving phase. The CCD data provides raw first-touch data from a swept collision detection test, but we will be rebuilding a full contact manifold at the post-CCD position. The CCD normal and position here are not used again. For example, it is not a good idea to use the CCD data to categorize collisions as wall or floor contacts. If you need to know the actual contact positions and normals that will be used in the contact reoslution phase, then see FCollisionContactModifier.
| Name | FCCDModifier |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/CCDModification.h |
| Include Path | #include "Chaos/CCDModification.h" |
Syntax
class FCCDModifier
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCCDModifier () |
Chaos/CCDModification.h | ||
FCCDModifier
(
FCCDModifierAccessor* InAccessor, |
Chaos/CCDModification.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Accessor | FCCDModifierAccessor * | Chaos/CCDModification.h | ||
| Constraint | FPBDCollisionConstraint * | Chaos/CCDModification.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConvertToProbe() |
Convert this contact to a probe. | Chaos/CCDModification.h | |
void Disable() |
Disable this contact. | Chaos/CCDModification.h | |
void Enable() |
Re-enable this contact (if it was previously disabled) | Chaos/CCDModification.h | |
const FGeometryParticleHandle * GetOtherParticle
(
const FGeometryParticleHandle* InParticle |
Chaos/CCDModification.h | ||
const FGeometryParticleHandle * GetParticle
(
const int32 ParticleIndex |
Chaos/CCDModification.h | ||
FReal GetSweepHitTOI() |
Get the time of impact. This is as a fraction of total movement and will be in the range [0,1] if a hit was found. | Chaos/CCDModification.h | |
FVec3 GetWorldSweepHitLocation
(
const int32 ParticleIndex |
Get the sweep impact position for the specified body NOTE: See class comments. | Chaos/CCDModification.h | |
FVec3 GetWorldSweepHitNormal() |
Get the sweep impact normal NOTE: See class comments. | Chaos/CCDModification.h | |
bool IsSweepHit() |
Whether the two particle actually hit each other in the sweep. | Chaos/CCDModification.h | |
bool IsValid() |
Chaos/CCDModification.h |