Skip to content

Commit

Permalink
Allow specifying sphere size in CCDIKSolver.createHelper (#28147)
Browse files Browse the repository at this point in the history
* Allow specifying sphere size in CCDIKSolver.createHelper

* Fix whitespace

* Update CCDIKSolver.js

Clean up.

---------

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
  • Loading branch information
Psychpsyo and Mugen87 committed Apr 17, 2024
1 parent 70e7f55 commit 0dbbf04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/jsm/animation/CCDIKSolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,12 @@ class CCDIKSolver {
/**
* Creates Helper
*
* @param {number} sphereSize
* @return {CCDIKHelper}
*/
createHelper() {
createHelper( sphereSize ) {

return new CCDIKHelper( this.mesh, this.iks );
return new CCDIKHelper( this.mesh, this.iks, sphereSize );

}

Expand Down Expand Up @@ -280,6 +281,7 @@ function setPositionOfBoneToAttributeArray( array, index, bone, matrixWorldInv )
*
* @param {SkinnedMesh} mesh
* @param {Array<Object>} iks
* @param {number} sphereSize
*/
class CCDIKHelper extends Object3D {

Expand Down

0 comments on commit 0dbbf04

Please sign in to comment.