Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPhysicsEnabledObject

Interface for a physics-enabled object

see

https://doc.babylonjs.com/how_to/using_the_physics_engine

Hierarchy

  • IPhysicsEnabledObject

Index

Properties

Optional parentSearch playground for parent

parent: any

The parent of the physics-enabled object

positionSearch playground for position

position: Vector3

The position of the physics-enabled object

Optional rotationSearch playground for rotation

rotation: Vector3

The rotation of the physics-enabled object

rotationQuaternionSearch playground for rotationQuaternion

rotationQuaternion: Nullable<Quaternion>

The rotation of the physics-enabled object

scalingSearch playground for scaling

scaling: Vector3

The scale of the physics-enabled object

Methods

computeWorldMatrixSearch playground for computeWorldMatrix

  • 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

getAbsolutePivotPointSearch playground for getAbsolutePivotPoint

  • Gets the absolute pivot point from the mesh

    Returns Vector3

    the absolute pivot point

getAbsolutePositionSearch playground for getAbsolutePosition

  • Gets the absolute position from the mesh

    Returns Vector3

    the absolute position

getBoundingInfoSearch playground for getBoundingInfo

  • The bounding info of the physics-enabled object

    Returns BoundingInfo

    The bounding info of the physics-enabled object

Optional getChildMeshesSearch playground for getChildMeshes

  • getChildMeshes(directDescendantsOnly?: boolean): Array<AbstractMesh>
  • Gets the child meshes

    Parameters

    • Optional directDescendantsOnly: boolean

      Specifies if only direct-descendants should be obtained

    Returns Array<AbstractMesh>

    An array of abstract meshes

getClassNameSearch playground for getClassName

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

    Returns string

    The class name

Optional getIndicesSearch playground for getIndices

  • Gets the indices from the mesh

    Returns Nullable<IndicesArray>

    A nullable array of index arrays

Optional getSceneSearch playground for getScene

  • Gets the scene from the mesh

    Returns Scene

    the indices array or null

getVerticesDataSearch playground for getVerticesData

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

    Parameters

    • kind: string

      The type of vertex data

    Returns Nullable<Array<number> | Float32Array>

    A nullable array of numbers, or a float32 array

Optional getWorldMatrixSearch playground for getWorldMatrix

  • Gets the world matrix

    Returns Matrix

    A world matrix

rotateSearch playground for rotate

  • 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

setAbsolutePositionSearch playground for setAbsolutePosition

  • Sets the absolute position of the mesh

    Parameters

    • absolutePosition: Vector3

      The absolute position of the mesh

    Returns TransformNode

    The transform node

translateSearch playground for translate

  • 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
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method