Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/FAnimPhys > API/Runtime/Engine/Animation/FAnimPhys/CalculateInertia
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Animation/AnimPhysicsSolver.h |
| Include | #include "Animation/AnimPhysicsSolver.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimPhysicsSolver.cpp |
static FMatrix CalculateInertia
(
const TArray < FAnimPhysShape > & InShapes,
const FVector & InCenterOfMass
)
Remarks
Calculate the inertia tensor of a collection of shapes
Parameters
| Name | Description |
|---|---|
| InShapes | Shapes to use |
| InCenterOfMass | Center of mass of the collection |