class BoneLookController
Create a BoneLookController
maxYaw: the maximum angle the bone will yaw to
minYaw: the minimum angle the bone will yaw to
maxPitch: the maximum angle the bone will pitch to
minPitch: the minimum angle the bone will yaw to
slerpAmount: set the between 0 and 1 to make the bone slerp to the target.
upAxis: the up axis of the coordinate system
upAxisSpace: the space that the up axis is in - BABYLON.Space.BONE, BABYLON.Space.LOCAL (default), or BABYLON.Space.WORLD.
yawAxis: set yawAxis if the bone does not yaw on the y axis
pitchAxis: set pitchAxis if the bone does not pitch on the x axis
adjustYaw: used to make an adjustment to the yaw of the bone
adjustPitch: used to make an adjustment to the pitch of the bone
adjustRoll: used to make an adjustment to the roll of the bone
Name | Type | Description | |
---|---|---|---|
mesh | AbstractMesh | the mesh that the bone belongs to | |
bone | Bone | the bone that will be looking to the target | |
target | Vector3 | the target Vector3 to look at |
The target Vector3 that the bone will look at.
The mesh that the bone is attached to.
The bone that will be looking to the target.
The up axis of the coordinate system that is used when the bone is rotated.
The space that the up axis is in - BABYLON.Space.BONE, BABYLON.Space.LOCAL (default), or BABYLON.Space.WORLD.
Used to make an adjustment to the yaw of the bone.
Used to make an adjustment to the pitch of the bone.
Used to make an adjustment to the roll of the bone.
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).
Get/set the minimum yaw angle that the bone can look to.
Get/set the maximum yaw angle that the bone can look to.
Get/set the minimum pitch angle that the bone can look to.
Get/set the maximum pitch angle that the bone can look to.
Update the bone to look at the target. This should be called before the scene is rendered (use scene.registerBeforeRender()).