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