Capítulo 322 de 859

Chapter 322: CCDIKHelper

Core Idea

Helper for visualizing IK bones.

Key Concepts

  • 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.

Code Examples

import { CCDIKHelper } from 'three/addons/animation/CCDIKSolver.js';
  • What it demonstrates: Typical usage of CCDIKHelper.

Reference Tables

Constructor

Signature
new CCDIKHelper( mesh : SkinnedMesh, iks : Array.<CCDIKSolver~IK>, sphereSize : number )

Properties

PropertyDescription
.effectorSphereMaterial : MeshBasicMaterialThe material for the effector spheres.
.iks : Array.<CCDIKSolver~IK>The IK objects.
.lineMaterial : LineBasicMaterialA global line material.
.linkSphereMaterial : MeshBasicMaterialThe material for the link spheres.
.root : SkinnedMeshThe skinned mesh this helper refers to.
.sphereGeometry : SphereGeometryThe helpers sphere geometry.
.targetSphereMaterial : MeshBasicMaterialThe material for the target spheres.

Methods

MethodDescription
.dispose()Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.

Key Takeaways

  1. CCDIKHelper extends: EventDispatcher → Object3D
  2. Most relevant properties: effectorSphereMaterial, iks, lineMaterial, linkSphereMaterial.
  3. Key methods: dispose.

Connects To