Class BoneAxesViewer
Hierarchy
-
AxesViewer
- BoneAxesViewer
Index
Constructors
Properties
Accessors
Methods
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
Gets or sets the target bone where to display the axes viewer
meshSearch playground for mesh
Gets or sets the target mesh where to display the axes viewer
posSearch playground for pos
Gets current position
scale LinesSearch playground for scaleLines
Gets or sets a number used to scale line length
sceneSearch playground for scene
Gets the hosting scene
xaxisSearch playground for xaxis
Gets direction of X axis
yaxisSearch playground for yaxis
Gets direction of Y axis
zaxisSearch playground for zaxis
Gets direction of Z axis
Accessors
x Axis
-
Gets the node hierarchy used to render x-axis
Returns TransformNode
y Axis
-
Gets the node hierarchy used to render y-axis
Returns TransformNode
z Axis
-
Gets the node hierarchy used to render z-axis
Returns TransformNode
Methods
create InstanceSearch playground for createInstance
-
Creates an instance of this axes viewer.
Returns AxesViewer
a new axes viewer with instanced meshes
disposeSearch playground for dispose
-
Releases resources
Returns void
updateSearch playground for update
-
Force the viewer to update
Returns void
The BoneAxesViewer will attach 3 axes to a specific bone of a specific mesh
demo here: https://www.babylonjs-playground.com/#0DE8F4#8