Motion
Get Motion

ReferenceScripting APIMeshComponentbone

MeshComponent.bone

method

One of its model's joints.

Namebone
Kindmethod of MeshComponent
Called asmeshComponent.bone(…)
As a nodeGet Bone (logic graph)
Since0.3

Syntax

bone(name: string): { position: Vector3; rotation: { x: number; y: number; z: number; w: number } } | null

Parameters

NameTypeDescription
namestringThe joint's name

Returns

{ position: Vector3; rotation: { x: number; y: number; z: number; w: number } } | null: its place and turn, or null.

See also

Vector3