PhysicsState

Engine/source/T3D/physics/physicsCommon.h

Helper structure which defines the state of a single physics body.

More...

Public User Defined

The secondary physics state derived from the primary state.

Public Attributes

The angular momentum.

The momentum in kilogram meters per second.

The orientation of the body.

The primary physics state.

bool

Is true if the shape is asleep.

Public Functions

Constructor.

Helper builds the transform from the state.

Interpolates between two physics states leaving the result in this physics state.

Detailed Description

Helper structure which defines the state of a single physics body.

Public User Defined

Point3F linVelocity 

The secondary physics state derived from the primary state.

The linear velocity derived from the momentum.

Point3F angVelocity 

Public Attributes

Point3F angularMomentum 

The angular momentum.

Point3F momentum 

The momentum in kilogram meters per second.

QuatF orientation 

The orientation of the body.

Point3F position 

The primary physics state.

The position of the body.

bool sleeping 

Is true if the shape is asleep.

Public Functions

PhysicsState()

Constructor.

getTransform()

Helper builds the transform from the state.

interpolate(const PhysicsState & a, const PhysicsState & b, F32 t)

Interpolates between two physics states leaving the result in this physics state.