API

Interface IPhysicsEnabledObject

Interface for a physics-enabled object

interface IPhysicsEnabledObject {
    parent?: any;
    position: Vector3;
    rotation?: Vector3;
    rotationQuaternion: Nullable<Quaternion>;
    scaling: Vector3;
    computeWorldMatrix(force: boolean): Matrix;
    getAbsolutePivotPoint(): Vector3;
    getAbsolutePosition(): Vector3;
    getBoundingInfo(): BoundingInfo;
    getChildMeshes?(directDescendantsOnly?: boolean): AbstractMesh[];
    getClassName(): string;
    getIndices?(): Nullable<IndicesArray>;
    getScene?(): Scene;
    getVerticesData(kind: string): Nullable<FloatArray>;
    getWorldMatrix?(): Matrix;
    rotate(axis: Vector3, amount: number, space?: Space): TransformNode;
    setAbsolutePosition(absolutePosition: Vector3): TransformNode;
    translate(axis: Vector3, distance: number, space?: Space): TransformNode;
}
Index
parent?: any

The parent of the physics-enabled object

position: Vector3

The position of the physics-enabled object

rotation?: Vector3

The rotation of the physics-enabled object

rotationQuaternion: Nullable<Quaternion>

The rotation of the physics-enabled object

scaling: Vector3

The scale of the physics-enabled object