Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BoneAxesViewer

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

constructor

  • 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

boneSearch playground for bone

bone: Nullable<Bone>

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

meshSearch playground for mesh

mesh: Nullable<Mesh>

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

posSearch playground for pos

pos: Vector3

Gets current position

scaleLinesSearch playground for scaleLines

scaleLines: number

Gets or sets a number used to scale line length

sceneSearch playground for scene

scene: Nullable<Scene>

Gets the hosting scene

xaxisSearch playground for xaxis

xaxis: Vector3

Gets direction of X axis

yaxisSearch playground for yaxis

yaxis: Vector3

Gets direction of Y axis

zaxisSearch playground for zaxis

zaxis: Vector3

Gets direction of Z axis

Accessors

xAxis

  • Gets the node hierarchy used to render x-axis

    Returns TransformNode

yAxis

  • Gets the node hierarchy used to render y-axis

    Returns TransformNode

zAxis

  • Gets the node hierarchy used to render z-axis

    Returns TransformNode

Methods

createInstanceSearch playground for createInstance

  • Creates an instance of this axes viewer.

    Returns AxesViewer

    a new axes viewer with instanced meshes

disposeSearch playground for dispose

  • dispose(): void
  • Releases resources

    Returns void

updateSearch playground for update

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

    Returns void

Legend

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