Navigation
API > API/Runtime > API/Runtime/Chaos
FShapeInstanceExtended An extended version of FShapeInstance (physics-thread shape instance data) that caches some world-space state of the shape for use in collision detection. This extended data if only required for shapes that have a transform relative to the particle they are attached to. It helps by avoiding the need to recalculate the shape transform every time it is needed in collision detection, which is once for each other shape we may be in contact with.
NOTE: keep size to a minimum. There can be millions of these in s scene.
| Name | FShapeInstanceExtended |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ShapeInstance.h |
| Include Path | #include "Chaos/ShapeInstance.h" |
Syntax
class FShapeInstanceExtended : public Chaos::FShapeInstance
Inheritance Hierarchy
- FPerShapeData → FShapeInstance → FShapeInstanceExtended
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FShapeInstanceExtended
(
FShapeInstance&& PerShapeData |
Chaos/ShapeInstance.h | ||
FShapeInstanceExtended
(
int32 InShapeIdx, |
Chaos/ShapeInstance.h | ||
FShapeInstanceExtended
(
int32 InShapeIdx, |
Chaos/ShapeInstance.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigidTransform3 GetWorldTransform() |
Chaos/ShapeInstance.h | ||
void SetWorldTransform
(
const FRigidTransform3& LeafWorldTransform |
Chaos/ShapeInstance.h |