FAnimPhysRigidBody

A collection of shapes grouped for simulation as a rigid body

Windows
MacOS
Linux

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

Name Description

Public variable

float

 

AngularDamping

Public variable

bool

 

bAngularDampingOverriden

Override angular damping for this body.

Public variable

bool

 

bLinearDampingOverriden

Override linear damping for this body.

Public variable

bool

 

bUseGravityOverride

Use manual gravity override.

Public variable

bool

 

bWindEnabled

Whether to use wind forces on this body.

Public variable

FVector

 

CenterOfMass

Body center of mass (CoM of all shapes)

Public variable

AnimPhysCollisi...

 

CollisionType

Collision Data (Only how we interact with planes currently)

Public variable

FVector

 

GravityOverride

Direct gravity override value.

Public variable

float

 

GravityScale

Override gravity scale for this body.

Public variable

float

 

InverseMass

1.0f / Mass

Public variable

FMatrix

 

InverseTensorWithoutMass

Mass free inverse tensor (easier to scale mass)

Public variable

FMatrix

 

InverseWorldSpaceTensor

Full (with mass) inverse tensor in world space.

Public variable

float

 

LinearDamping

Public variable

float

 

Mass

Mass of this body.

Public variable

FQuat

 

NextOrientation

Public variable

FVector

 

NextPosition

Maintained state, Start/Prev/Next.

Public variable

FQuat

 

PreviousOrientation

Public variable

FVector

 

PreviousPosition

Public variable

FAnimPhysState

 

PreviousState

Previous motion state (linear/angular momentum)

Public variable

TArray< FAnimPh...

 

Shapes

Shapes contained within this body.

Public variable

float

 

SphereCollisionRadius

Radius to use when not using CoM collision mode.

Public variable

FQuat

 

StartOrientation

Public variable

FVector

 

StartPosition

Public variable

FAnimPhysWindDa...

 

WindData

Per-body wind data (speed, direction etc.)

Constructors

Name Description

Public function

FAnimPhysRigidBody

(
    TArray< FAnimPhysShape >& InShapes,
    const FVector& InPosition
)

Functions

Name Description

Public function

FVector

 

Spin()

Spin / Omega for the body.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss