Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BoneIKController

Class used to apply inverse kinematics to bones

see

https://doc.babylonjs.com/how_to/how_to_use_bones_and_skeletons#boneikcontroller

Hierarchy

  • BoneIKController

Index

Constructors

constructor

  • Creates a new BoneIKController

    Parameters

    • mesh: TransformNode

      defines the TransformNode to control

    • bone: Bone

      defines the bone to control

    • Optional options: { bendAxis?: Vector3; maxAngle?: number; poleAngle?: number; poleTargetBone?: Bone; poleTargetLocalOffset?: Vector3; poleTargetMesh?: TransformNode; slerpAmount?: number; targetMesh?: TransformNode }

      defines options to set up the controller

      • Optional bendAxis?: Vector3
      • Optional maxAngle?: number
      • Optional poleAngle?: number
      • Optional poleTargetBone?: Bone
      • Optional poleTargetLocalOffset?: Vector3
      • Optional poleTargetMesh?: TransformNode
      • Optional slerpAmount?: number
      • Optional targetMesh?: TransformNode

    Returns BoneIKController

Properties

meshSearch playground for mesh

Gets or sets the TransformNode associated with the controller Name kept as mesh for back compatibility

poleAngleSearch playground for poleAngle

poleAngle: number

Gets or sets the pole angle

poleTargetBoneSearch playground for poleTargetBone

poleTargetBone: Nullable<Bone>

Gets or sets the bone used as pole

poleTargetLocalOffsetSearch playground for poleTargetLocalOffset

poleTargetLocalOffset: Vector3

Gets or sets the pole target local offset

poleTargetMeshSearch playground for poleTargetMesh

poleTargetMesh: TransformNode

Gets or sets the mesh used as pole

poleTargetPositionSearch playground for poleTargetPosition

poleTargetPosition: Vector3

Gets or sets the pole target position

slerpAmountSearch playground for slerpAmount

slerpAmount: number

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)

targetMeshSearch playground for targetMesh

targetMesh: TransformNode

Gets or sets the target TransformNode Name kept as mesh for back compatibility

targetPositionSearch playground for targetPosition

targetPosition: Vector3

Gets or sets the target position

Accessors

maxAngle

  • get maxAngle(): number
  • set maxAngle(value: number): any
  • Gets or sets maximum allowed angle

    Returns number

  • Gets or sets maximum allowed angle

    Parameters

    • value: number

    Returns any

Methods

updateSearch playground for update

  • update(): void
  • Force the controller to update the bones

    Returns void

Legend

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