RotationBodyData

Inherits from MovingBodyData

Summary

Constructors

RotationBodyData()
RotationBodyData(guid: Guid)
RotationBodyData(other: MovingBodyData)
RotationBodyData(other: DataContainer)

Properties

Name Type
angularMomentumMultiplier float
angularMomentumThreshold float
angularMomentumDamping float
angularMomentumDampingAcc float
angularMomentumDampingDeacc float
angularConstraintMin float
extendedConstraints ExtendedConstraintsData | nil
angularConstraintMax float
rotationAxis int
usePostSatisfyConstraints bool
useAngularMomentumThreshold bool
useAngularMomentumDamping bool
useAngularConstraint bool

Static members

Name Type
RotationBodyData.typeInfo TypeInformation

Constructors

RotationBodyData

RotationBodyData()

Creates a new RotationBodyData frostbite instance.

RotationBodyData

RotationBodyData(guid: Guid)

Creates a new RotationBodyData frostbite instance and assigns it the provided Guid.

Parameters

Name Type Description
guid Guid The Guid to assign to the newly created instance.

RotationBodyData

RotationBodyData(other: MovingBodyData)

Casts an instance of type MovingBodyData to RotationBodyData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other MovingBodyData The instance to cast to RotationBodyData.

RotationBodyData

RotationBodyData(other: DataContainer)

Casts an instance of type DataContainer to RotationBodyData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other DataContainer The instance to cast to RotationBodyData.

Properties

angularMomentumMultiplier

float

angularMomentumThreshold

float

angularMomentumDamping

float

angularMomentumDampingAcc

float

angularMomentumDampingDeacc

float

angularConstraintMin

float

extendedConstraints

ExtendedConstraintsData | nil

angularConstraintMax

float

rotationAxis

int

usePostSatisfyConstraints

bool

useAngularMomentumThreshold

bool

useAngularMomentumDamping

bool

useAngularConstraint

bool

Static members

typeInfo

TypeInformation

The type information for the RotationBodyData type.

Last modified April 26, 2020: Update frostbite type documentation (8b14351c)