Options
All
  • Public
  • Public/Protected
  • All
Menu

The BoneAxesViewer will attach 3 axes to a specific bone of a specific mesh

see

demo here: https://www.babylonjs-playground.com/#0DE8F4#8

Hierarchy

Index

Constructors

  • Creates a new BoneAxesViewer

    Parameters

    • scene: Scene

      defines the hosting scene

    • bone: Bone

      defines the target bone

    • mesh: Mesh

      defines the target mesh

    • Optional scaleLines: number

      defines a scaling factor for line length (1 by default)

    Returns BoneAxesViewer

Properties

bone: Nullable<Bone>

Gets or sets the target bone where to display the axes viewer

mesh: Nullable<Mesh>

Gets or sets the target mesh where to display the axes viewer

pos: Vector3

Gets current position

scaleLines: number

Gets or sets a number used to scale line length

scene: Nullable<Scene>

Gets the hosting scene

xaxis: Vector3

Gets direction of X axis

yaxis: Vector3

Gets direction of Y axis

zaxis: Vector3

Gets direction of Z axis

Accessors

  • Gets the node hierarchy used to render x-axis

    Returns TransformNode

  • Gets the node hierarchy used to render y-axis

    Returns TransformNode

  • Gets the node hierarchy used to render z-axis

    Returns TransformNode

Methods

  • Creates an instance of this axes viewer.

    Returns AxesViewer

    a new axes viewer with instanced meshes

  • dispose(): void
  • Releases resources

    Returns void

  • update(): void
  • Force the viewer to update

    Returns void

Legend

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

Settings

Theme