Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
Inheritance Hierarchy
- FAnimPhysState
- FAnimPhysRigidBody
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Animation/AnimPhysicsSolver.h |
| Include | #include "Animation/AnimPhysicsSolver.h" |
Syntax
class FAnimPhysRigidBody : public FAnimPhysState
Remarks
A collection of shapes grouped for simulation as a rigid body
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AngularDamping | ||
| bool | bAngularDampingOverriden | Override angular damping for this body. | |
| bool | bLinearDampingOverriden | Override linear damping for this body. | |
| bool | bUseGravityOverride | Use manual gravity override. | |
| bool | bWindEnabled | Whether to use wind forces on this body. | |
| FVector | CenterOfMass | Body center of mass (CoM of all shapes) | |
| AnimPhysCollisionType | CollisionType | Collision Data (Only how we interact with planes currently) | |
| FVector | GravityOverride | Direct gravity override value. | |
| float | GravityScale | Override gravity scale for this body. | |
| float | InverseMass | 1.0f / Mass | |
| FMatrix | InverseTensorWithoutMass | Mass free inverse tensor (easier to scale mass) | |
| FMatrix | InverseWorldSpaceTensor | Full (with mass) inverse tensor in world space. | |
| float | LinearDamping | ||
| float | Mass | Mass of this body. | |
| FQuat | NextOrientation | ||
| FVector | NextPosition | Maintained state, Start/Prev/Next. | |
| FQuat | PreviousOrientation | ||
| FVector | PreviousPosition | ||
| FAnimPhysState | PreviousState | Previous motion state (linear/angular momentum) | |
| TArray< FAnimPhysShape > | Shapes | Shapes contained within this body. | |
| float | SphereCollisionRadius | Radius to use when not using CoM collision mode. | |
| FQuat | StartOrientation | ||
| FVector | StartPosition | ||
| FAnimPhysWindData | WindData | Per-body wind data (speed, direction etc.) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAnimPhysRigidBody
(
TArray< FAnimPhysShape >& InShapes, |