Navigation
API > API/Plugins > API/Plugins/ChaosCloth
Collider simulation node.
| Name | FClothingSimulationCollider |
| Type | class |
| Header File | /Engine/Plugins/ChaosCloth/Source/ChaosCloth/Public/ChaosCloth/ChaosClothingSimulationCollider.h |
| Include Path | #include "ChaosCloth/ChaosClothingSimulationCollider.h" |
Syntax
class FClothingSimulationCollider
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FClothingSimulationCollider
(
const UPhysicsAsset* InPhysicsAsset, |
ChaosCloth/ChaosClothingSimulationCollider.h | ||
| ChaosCloth/ChaosClothingSimulationCollider.h | |||
| ChaosCloth/ChaosClothingSimulationCollider.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FClothingSimulationCollider() |
ChaosCloth/ChaosClothingSimulationCollider.h |
Structs
| Name | Remarks |
|---|---|
| FLODData |
Enums
Public
| Name | Remarks |
|---|---|
| ECollisionDataType |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FLevelSetCollisionData | Chaos::FLevelSetCollisionData | ChaosCloth/ChaosClothingSimulationCollider.h | |
| FSkinnedLevelSetCollisionData | Chaos::FSkinnedLevelSetCollisionData | ChaosCloth/ChaosClothingSimulationCollider.h | |
| FSolverClothPair | TPair< const FClothingSimulationSolver *, const FClothingSimulationCloth * > | ChaosCloth/ChaosClothingSimulationCollider.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasExternalCollisionChanged | bool | ChaosCloth/ChaosClothingSimulationCollider.h | ||
| CollisionData | const FClothCollisionData * | ChaosCloth/ChaosClothingSimulationCollider.h | ||
| LODData | TArray< TUniquePtr< FLODData > > | Collision primitives. | ChaosCloth/ChaosClothingSimulationCollider.h | |
| LODIndices | TMap< FSolverClothPair, int32 > | ChaosCloth/ChaosClothingSimulationCollider.h | ||
| PhysicsAsset | const UPhysicsAsset * | ChaosCloth/ChaosClothingSimulationCollider.h | ||
| ReferenceSkeleton | const FReferenceSkeleton * | ChaosCloth/ChaosClothingSimulationCollider.h | ||
| Scale | FReal | Initial scale. | ChaosCloth/ChaosClothingSimulationCollider.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
FClothingSimulationSolver* Solver, |
- Cloth interface - | ChaosCloth/ChaosClothingSimulationCollider.h | |
FClothCollisionData GetCollisionData
(
const FClothingSimulationSolver* Solver, |
Return source (untransformed) collision data for LODless, external and active LODs. | ChaosCloth/ChaosClothingSimulationCollider.h | |
TConstArrayView< TUniquePtr< FImplicitObject > > GetCollisionGeometries
(
const FClothingSimulationSolver* Solver, |
ChaosCloth/ChaosClothingSimulationCollider.h | ||
TConstArrayView< FImplicitObjectPtr > GetCollisionGeometry
(
const FClothingSimulationSolver* Solver, |
Return current active LOD collision geometries, not thread safe, to use after solver update. | ChaosCloth/ChaosClothingSimulationCollider.h | |
int32 GetCollisionRangeId
(
const FClothingSimulationSolver* Solver, |
Return the collision particle range ID for the specified type if valid. If ECollisionDataType::LODs is asked, then the offset returned is for the current LOD. | ChaosCloth/ChaosClothingSimulationCollider.h | |
TConstArrayView< Softs::FSolverRotation3 > GetCollisionRotations
(
const FClothingSimulationSolver* Solver, |
Return current active LOD collision particles rotations, not thread safe, to use after solver update. | ChaosCloth/ChaosClothingSimulationCollider.h | |
TConstArrayView< bool > GetCollisionStatus
(
const FClothingSimulationSolver* Solver, |
Return whether the collision has been hit by a particle during CCD. | ChaosCloth/ChaosClothingSimulationCollider.h | |
TConstArrayView< Softs::FSolverVec3 > GetCollisionTranslations
(
const FClothingSimulationSolver* Solver, |
- Debugging and visualization functions - Return current active LOD collision particles translations, not thread safe, to use after solver update. | ChaosCloth/ChaosClothingSimulationCollider.h | |
int32 GetNumGeometries () |
ChaosCloth/ChaosClothingSimulationCollider.h | ||
TConstArrayView< Softs::FSolverRigidTransform3 > GetOldCollisionTransforms
(
const FClothingSimulationSolver* Solver, |
Return current active LOD previous frame collision particles transforms, not thread safe, to use after solver update. | ChaosCloth/ChaosClothingSimulationCollider.h | |
void PreUpdate
(
FClothingSimulationSolver* Solver, |
ChaosCloth/ChaosClothingSimulationCollider.h | ||
void Remove
(
FClothingSimulationSolver* Solver, |
ChaosCloth/ChaosClothingSimulationCollider.h | ||
void ResetStartPose
(
FClothingSimulationSolver* Solver, |
ChaosCloth/ChaosClothingSimulationCollider.h | ||
void SetCollisionData
(
const FClothCollisionData* InCollisionData |
- Animatable property setters - Set external collision data, will only get updated when used as a Solver Collider TODO: Subclass collider? | ChaosCloth/ChaosClothingSimulationCollider.h | |
void Update
(
FClothingSimulationSolver* Solver, |
ChaosCloth/ChaosClothingSimulationCollider.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ExtractPhysicsAssetCollision
(
const UPhysicsAsset* PhysicsAsset, |
Extract all collisions from the physics asset into a more cloth friendly format. | ChaosCloth/ChaosClothingSimulationCollider.h | |
static void ExtractPhysicsAssetCollision
(
const UPhysicsAsset* PhysicsAsset, |
Extract all collisions from the physics asset into a more cloth friendly format | ChaosCloth/ChaosClothingSimulationCollider.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ChaosCloth/ChaosClothingSimulationCollider.h | |||
| ChaosCloth/ChaosClothingSimulationCollider.h |