Capítulo 522 de 859

Chapter 522: CCDIKSolver

Core Idea

This class solves the Inverse Kinematics Problem with a CCD Algorithm.

CCDIKSolver is designed to work with instances of SkinnedMesh.

Key Concepts

  • iks : Array.<CCDIKSolver~IK>: The IK objects.
  • mesh : SkinnedMesh: The skinned mesh.

Code Examples

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

Reference Tables

Constructor

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

Properties

PropertyDescription
.iks : Array.<CCDIKSolver~IK>The IK objects.
.mesh : SkinnedMeshThe skinned mesh.

Methods

MethodDescription
.createHelper( sphereSize : number ) : CCDIKHelperCreates a helper for visualizing the CCDIK.
.update( globalBlendFactor : number ) : CCDIKSolverUpdates all IK bones by solving the CCD algorithm.
.updateOne( ik : CCDIKSolver~IK, overrideBlend : number ) : CCDIKSolverUpdates one IK bone solving the CCD algorithm.

Key Takeaways

  1. Most relevant properties: iks, mesh.
  2. Key methods: createHelper, update, updateOne.

Connects To