Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/objects/SkinnedMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const _vector3 = /*@__PURE__*/ new Vector3();
const _matrix4 = /*@__PURE__*/ new Matrix4();
const _vertex = /*@__PURE__*/ new Vector3();

const _sphere = /*@__PURE__*/ new Sphere();
//const _sphere = /*@__PURE__*/ new Sphere();

class SkinnedMesh extends Mesh {

Expand Down Expand Up @@ -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 ) {

Expand Down