Capítulo 322 de 859
Helper for visualizing IK bones.
import { CCDIKHelper } from 'three/addons/animation/CCDIKSolver.js';
Constructor
| Signature |
|---|
new CCDIKHelper( mesh : SkinnedMesh, iks : Array.<CCDIKSolver~IK>, sphereSize : number ) |
Properties
| Property | Description |
|---|---|
.effectorSphereMaterial : MeshBasicMaterial | The material for the effector spheres. |
.iks : Array.<CCDIKSolver~IK> | The IK objects. |
.lineMaterial : LineBasicMaterial | A global line material. |
.linkSphereMaterial : MeshBasicMaterial | The material for the link spheres. |
.root : SkinnedMesh | The skinned mesh this helper refers to. |
.sphereGeometry : SphereGeometry | The helpers sphere geometry. |
.targetSphereMaterial : MeshBasicMaterial | The material for the target spheres. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app. |