Capítulo 522 de 859
This class solves the Inverse Kinematics Problem with a CCD Algorithm.
CCDIKSolver is designed to work with instances of SkinnedMesh.
import { CCDIKSolver } from 'three/addons/animation/CCDIKSolver.js';
Constructor
| Signature |
|---|
new CCDIKSolver( mesh : SkinnedMesh, iks : Array.<CCDIKSolver~IK> ) |
Properties
| Property | Description |
|---|---|
.iks : Array.<CCDIKSolver~IK> | The IK objects. |
.mesh : SkinnedMesh | The skinned mesh. |
Methods
| Method | Description |
|---|---|
.createHelper( sphereSize : number ) : CCDIKHelper | Creates a helper for visualizing the CCDIK. |
.update( globalBlendFactor : number ) : CCDIKSolver | Updates all IK bones by solving the CCD algorithm. |
.updateOne( ik : CCDIKSolver~IK, overrideBlend : number ) : CCDIKSolver | Updates one IK bone solving the CCD algorithm. |