Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IPhysicsEnabledObject

Index

Properties

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

Methods

  • computeWorldMatrix(force: boolean): Matrix
  • Computes the world matrix

    Parameters

    • force: boolean

      Specifies if the world matrix should be computed by force

    Returns Matrix

    A world matrix

  • Gets the absolute pivot point from the mesh

    Returns Vector3

    the absolute pivot point

  • Gets the absolute position from the mesh

    Returns Vector3

    the absolute position

  • The bounding info of the physics-enabled object

    Returns BoundingInfo

    The bounding info of the physics-enabled object

  • getChildMeshes(directDescendantsOnly?: boolean): AbstractMesh[]
  • Gets the child meshes

    Parameters

    • Optional directDescendantsOnly: boolean

      Specifies if only direct-descendants should be obtained

    Returns AbstractMesh[]

    An array of abstract meshes

  • getClassName(): string
  • Gets the class name of the mesh

    Returns string

    The class name

  • Gets the indices from the mesh

    Returns Nullable<IndicesArray>

    A nullable array of index arrays

  • Gets the scene from the mesh

    Returns Scene

    the indices array or null

  • getVerticesData(kind: string): Nullable<number[] | Float32Array>
  • Gets the vertex data

    Parameters

    • kind: string

      The type of vertex data

    Returns Nullable<number[] | Float32Array>

    A nullable array of numbers, or a float32 array

  • Gets the world matrix

    Returns Matrix

    A world matrix

  • Rotates the mesh

    Parameters

    • axis: Vector3

      The axis of rotation

    • amount: number

      The amount of rotation

    • Optional space: Space

      The space of the rotation

    Returns TransformNode

    The rotation transform node

  • Sets the absolute position of the mesh

    Parameters

    • absolutePosition: Vector3

      The absolute position of the mesh

    Returns TransformNode

    The transform node

  • Translates the mesh

    Parameters

    • axis: Vector3

      The axis of translation

    • distance: number

      The distance of translation

    • Optional space: Space

      The space of the translation

    Returns TransformNode

    The transform node

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme