RigidBodyData

Inherits from DataContainer

Summary

Constructors

RigidBodyData()
RigidBodyData(guid: Guid)
RigidBodyData(other: DataContainer)

Properties

Name Type
inertiaModifier Vec3
rigidBodyType RigidBodyType
mass float
restitution float
friction float
angularVelocityDamping float
linearVelocityDamping float
interactionToolkitCollisionVolumeId int
motionType RigidBodyMotionType
qualityType RigidBodyQualityType
collisionLayer RigidBodyCollisionLayer
floatPhysics FloatPhysicsData | nil
constraints RigidBodyConstraintData[]

Static members

Name Type
RigidBodyData.typeInfo TypeInformation

Constructors

RigidBodyData

RigidBodyData()

Creates a new RigidBodyData frostbite instance.

RigidBodyData

RigidBodyData(guid: Guid)

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

Parameters

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

RigidBodyData

RigidBodyData(other: DataContainer)

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

Parameters

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

Properties

inertiaModifier

Vec3

rigidBodyType

RigidBodyType

mass

float

restitution

float

friction

float

angularVelocityDamping

float

linearVelocityDamping

float

interactionToolkitCollisionVolumeId

int

motionType

RigidBodyMotionType

qualityType

RigidBodyQualityType

collisionLayer

RigidBodyCollisionLayer

floatPhysics

FloatPhysicsData | nil

constraints

RigidBodyConstraintData[]

Static members

typeInfo

TypeInformation

The type information for the RigidBodyData type.

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