Class BoneIKController
Hierarchy
- BoneIKController
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new BoneIKController
Parameters
-
mesh: AbstractMesh
defines the mesh to control
-
bone: Bone
defines the bone to control
-
Optional options: { bendAxis?: Vector3; maxAngle?: number; poleAngle?: number; poleTargetBone?: Bone; poleTargetLocalOffset?: Vector3; poleTargetMesh?: AbstractMesh; slerpAmount?: number; targetMesh?: AbstractMesh }
defines options to set up the controller
-
Optional bend
Axis?: Vector3 -
Optional max
Angle?: number -
Optional pole
Angle?: number -
Optional pole
Target Bone?: Bone -
Optional pole
Target Local Offset?: Vector3 -
Optional pole
Target Mesh?: AbstractMesh -
Optional slerp
Amount?: number -
Optional target
Mesh?: AbstractMesh
-
Returns BoneIKController
-
Properties
meshSearch playground for mesh
Gets or sets the mesh associated with the controller
pole AngleSearch playground for poleAngle
Gets or sets the pole angle
pole Target BoneSearch playground for poleTargetBone
Gets or sets the bone used as pole
pole Target Local OffsetSearch playground for poleTargetLocalOffset
Gets or sets the pole target local offset
pole Target MeshSearch playground for poleTargetMesh
Gets or sets the mesh used as pole
pole Target PositionSearch playground for poleTargetPosition
Gets or sets the pole target position
slerp AmountSearch playground for slerpAmount
The amount to slerp (spherical linear interpolation) to the target. Set this to a value between 0 and 1 (a value of 1 disables slerp)
target MeshSearch playground for targetMesh
Gets or sets the target mesh
target PositionSearch playground for targetPosition
Gets or sets the target position
Accessors
max Angle
-
Gets or sets maximum allowed angle
Returns number
-
Gets or sets maximum allowed angle
Parameters
-
value: number
Returns any
-
Methods
updateSearch playground for update
-
Force the controller to update the bones
Returns void
Class used to apply inverse kinematics to bones
https://doc.babylonjs.com/how_to/how_to_use_bones_and_skeletons#boneikcontroller