Sfoglia il codice sorgente

Allow specifying sphere size in CCDIKSolver.createHelper (#28147)

* Allow specifying sphere size in CCDIKSolver.createHelper

* Fix whitespace

* Update CCDIKSolver.js

Clean up.

---------

Co-authored-by: Michael Herzog <[email protected]>
Psychpsyo 1 anno fa
parent
commit
0dbbf04964
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      examples/jsm/animation/CCDIKSolver.js

+ 4 - 2
examples/jsm/animation/CCDIKSolver.js

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