Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/Chaos > API/Runtime/Chaos/Chaos/Collision
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/CollisionConstraintAllocator.h |
Include | #include "Chaos/Collision/CollisionConstraintAllocator.h" |
Syntax
class FCollisionContextAllocator
Remarks
Container the storage for the FCollisionConstraintAllocator, as well as the API to create new midphases and collision constraints. We have one of these objects per thread on which collisions detection is performed to get lock-free allocations and lists.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FCollisionContextAllocator
(
FPBDCollisionConstraints* InCollisionContainer, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | ActivateConstraint
(
FPBDCollisionConstraint* Constraint |
Set the constraint as Active - it will be added to the graph and solved this tick. |
![]() |
FPBDCollisionConstraintPtr | Create an uninitialized collision constraint (public only for use by Resim which overwrites it with a saved constraint) | |
![]() |
FPBDCollisionConstraintPtr | CreateConstraint
(
FGeometryParticleHandle* Particle0, |
Create a constraint (called by the MidPhase) |
![]() |
FParticlePairMidPhase * | FindMidPhase
(
FGeometryParticleHandle* Particle0, |
Return a midphase for a particle pair if it already exists, otherwise return null |
![]() ![]() |
int32 | The current epoch used to determine if a collision is up to date | |
![]() |
FParticlePairMidPhase * | GetMidPhase
(
FGeometryParticleHandle* Particle0, |
Return a midphase for a particle pair. |