Explorar o código

SkinnedMesh: Revert own raycast() method. (#25954)

Michael Herzog %!s(int64=2) %!d(string=hai) anos
pai
achega
31dd96f5e9
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      src/objects/SkinnedMesh.js

+ 8 - 8
src/objects/SkinnedMesh.js

@@ -14,7 +14,7 @@ const _vector3 = /*@__PURE__*/ new Vector3();
 const _matrix4 = /*@__PURE__*/ new Matrix4();
 const _matrix4 = /*@__PURE__*/ new Matrix4();
 const _vertex = /*@__PURE__*/ new Vector3();
 const _vertex = /*@__PURE__*/ new Vector3();
 
 
-const _sphere = /*@__PURE__*/ new Sphere();
+//const _sphere = /*@__PURE__*/ new Sphere();
 
 
 class SkinnedMesh extends Mesh {
 class SkinnedMesh extends Mesh {
 
 
@@ -97,18 +97,18 @@ class SkinnedMesh extends Mesh {
 
 
 	}
 	}
 
 
-	raycast( raycaster, intersects ) {
+	// raycast( raycaster, intersects ) {
 
 
-		if ( this.boundingSphere === null ) this.computeBoundingSphere();
+	// 	if ( this.boundingSphere === null ) this.computeBoundingSphere();
 
 
-		_sphere.copy( this.boundingSphere );
-		_sphere.applyMatrix4( this.matrixWorld );
+	// 	_sphere.copy( this.boundingSphere );
+	// 	_sphere.applyMatrix4( this.matrixWorld );
 
 
-		if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;
+	// 	if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;
 
 
-		this._computeIntersections( raycaster, intersects );
+	// 	this._computeIntersections( raycaster, intersects );
 
 
-	}
+	// }
 
 
 	getVertexPosition( index, target ) {
 	getVertexPosition( index, target ) {