|
@@ -99,6 +99,8 @@ Object.assign( Frustum.prototype, {
|
|
|
|
|
|
intersectsSprite: function ( sprite ) {
|
|
|
|
|
|
+ if ( _sphere === undefined ) _sphere = new Sphere();
|
|
|
+
|
|
|
_sphere.center.set( 0, 0, 0 );
|
|
|
_sphere.radius = 0.7071067811865476;
|
|
|
_sphere.applyMatrix4( sprite.matrixWorld );
|