Handles collision detection for a pair of simple shapes (i.e., not compound shapes)
More...
#include <ParticlePairMidPhase.h>
|
| CHAOS_API | FSingleShapePairCollisionDetector (FGeometryParticleHandle *InParticle0, const FPerShapeData *InShape0, FGeometryParticleHandle *InParticle1, const FPerShapeData *InShape1, const Private::FCollisionSortKey &InCollisionSortKey, const EContactShapesType InShapePairType, FParticlePairMidPhase &MidPhase) |
| |
| CHAOS_API | FSingleShapePairCollisionDetector (FSingleShapePairCollisionDetector &&R) |
| |
| | FSingleShapePairCollisionDetector (const FSingleShapePairCollisionDetector &R)=delete |
| |
| FSingleShapePairCollisionDetector & | operator= (const FSingleShapePairCollisionDetector &R)=delete |
| |
| CHAOS_API | ~FSingleShapePairCollisionDetector () |
| |
| const FPBDCollisionConstraint * | GetConstraint () const |
| |
| FPBDCollisionConstraint * | GetConstraint () |
| |
| const FGeometryParticleHandle * | GetParticle0 () const |
| |
| FGeometryParticleHandle * | GetParticle0 () |
| |
| const FGeometryParticleHandle * | GetParticle1 () const |
| |
| FGeometryParticleHandle * | GetParticle1 () |
| |
| const FPerShapeData * | GetShape0 () const |
| |
| const FPerShapeData * | GetShape1 () const |
| |
| bool | IsUsedSince (const int32 Epoch) const |
| | Have we run collision detection since this Epoch (inclusive)
|
| |
| int32 | GenerateCollision (const FReal CullDistance, const FReal Dt, const FCollisionContext &Context) |
| | Perform a bounds check and run the narrow phase if necessary.
|
| |
| CHAOS_API int32 | GenerateCollision (const FRealSingle Dt, const FRealSingle CullDistance, const FVec3f &RelativeMovement, const FCollisionContext &Context) |
| |
| int32 | GenerateCollisionCCD (const bool bEnableCCDSweep, const FReal CullDistance, const FReal Dt, const FCollisionContext &Context) |
| | Generate a SweptConstraint as long as AABBs overlap.
|
| |
| CHAOS_API int32 | GenerateCollisionCCD (const FRealSingle Dt, const FRealSingle CullDistance, const FVec3f &RelativeMovement, const bool bEnableCCDSweep, const FCollisionContext &Context) |
| |
| CHAOS_API void | WakeCollision (const int32 SleepEpoch, const int32 CurrentEpoch) |
| | Reactivate the constraint @parame SleepEpoch The tick on which the particle went to sleep. Only constraints that were active when the particle went to sleep should be reactivated.
|
| |
| CHAOS_API void | SetCollision (const FPBDCollisionConstraint &Constraint, const FCollisionContext &Context) |
| | Set the collision from the parameter and activate it This is used by the Resim restore functionality.
|
| |
Handles collision detection for a pair of simple shapes (i.e., not compound shapes)
This is used by FShapePairParticlePairMidPhase
◆ FCollisionsArray
◆ FSingleShapePairCollisionDetector() [1/3]
◆ FSingleShapePairCollisionDetector() [2/3]
◆ FSingleShapePairCollisionDetector() [3/3]
◆ ~FSingleShapePairCollisionDetector()
| Chaos::FSingleShapePairCollisionDetector::~FSingleShapePairCollisionDetector |
( |
| ) |
|
◆ GenerateCollision() [1/2]
Perform a bounds check and run the narrow phase if necessary.
- Returns
- The number of collisions constraints that were activated
◆ GenerateCollision() [2/2]
◆ GenerateCollisionCCD() [1/2]
Generate a SweptConstraint as long as AABBs overlap.
- Returns
- The number of collisions constraints that were activated
◆ GenerateCollisionCCD() [2/2]
◆ GetConstraint() [1/2]
◆ GetConstraint() [2/2]
◆ GetParticle0() [1/2]
◆ GetParticle0() [2/2]
◆ GetParticle1() [1/2]
◆ GetParticle1() [2/2]
◆ GetShape0()
| const FPerShapeData * Chaos::FSingleShapePairCollisionDetector::GetShape0 |
( |
| ) |
const |
|
inline |
◆ GetShape1()
| const FPerShapeData * Chaos::FSingleShapePairCollisionDetector::GetShape1 |
( |
| ) |
const |
|
inline |
◆ IsUsedSince()
| bool Chaos::FSingleShapePairCollisionDetector::IsUsedSince |
( |
const int32 |
Epoch | ) |
const |
|
inline |
Have we run collision detection since this Epoch (inclusive)
◆ operator=()
◆ SetCollision()
Set the collision from the parameter and activate it This is used by the Resim restore functionality.
◆ WakeCollision()
| void Chaos::FSingleShapePairCollisionDetector::WakeCollision |
( |
const int32 |
SleepEpoch, |
|
|
const int32 |
CurrentEpoch |
|
) |
| |
Reactivate the constraint @parame SleepEpoch The tick on which the particle went to sleep. Only constraints that were active when the particle went to sleep should be reactivated.
The documentation for this class was generated from the following files: