PhysicsEntityData

Inherits from EntityData

Summary

Constructors

PhysicsEntityData()
PhysicsEntityData(guid: Guid)
PhysicsEntityData(other: EntityData)
PhysicsEntityData(other: GameObjectData)
PhysicsEntityData(other: GameDataContainer)
PhysicsEntityData(other: DataContainer)

Properties

Name Type
inertiaModifier Vec3
scaledAssets HavokAsset[]
rigidBodies RigidBodyData[]
asset HavokAsset | nil
floatPhysics FloatPhysicsData | nil
mass float
restitution float
friction float
linearVelocityDamping float
angularVelocityDamping float
proximity ProximityData | nil
constraints RigidBodyConstraintData[]
encapsulatePartsInLists bool
movableParts bool

Static members

Name Type
PhysicsEntityData.typeInfo TypeInformation

Constructors

PhysicsEntityData

PhysicsEntityData()

Creates a new PhysicsEntityData frostbite instance.

PhysicsEntityData

PhysicsEntityData(guid: Guid)

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

Parameters

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

PhysicsEntityData

PhysicsEntityData(other: EntityData)

Casts an instance of type EntityData to PhysicsEntityData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other EntityData The instance to cast to PhysicsEntityData.

PhysicsEntityData

PhysicsEntityData(other: GameObjectData)

Casts an instance of type GameObjectData to PhysicsEntityData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other GameObjectData The instance to cast to PhysicsEntityData.

PhysicsEntityData

PhysicsEntityData(other: GameDataContainer)

Casts an instance of type GameDataContainer to PhysicsEntityData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other GameDataContainer The instance to cast to PhysicsEntityData.

PhysicsEntityData

PhysicsEntityData(other: DataContainer)

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

Parameters

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

Properties

inertiaModifier

Vec3

scaledAssets

HavokAsset[]

rigidBodies

RigidBodyData[]

asset

HavokAsset | nil

floatPhysics

FloatPhysicsData | nil

mass

float

restitution

float

friction

float

linearVelocityDamping

float

angularVelocityDamping

float

proximity

ProximityData | nil

constraints

RigidBodyConstraintData[]

encapsulatePartsInLists

bool

movableParts

bool

Static members

typeInfo

TypeInformation

The type information for the PhysicsEntityData type.

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