mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-13 15:05:56 +10:00
Optimising THREE.CollisionSystem::merge
This commit is contained in:
@@ -52,8 +52,8 @@ THREE.Collisions = new THREE.CollisionSystem();
|
||||
|
||||
THREE.CollisionSystem.prototype.merge = function( collisionSystem ) {
|
||||
|
||||
this.colliders = this.colliders.concat( collisionSystem.colliders );
|
||||
this.hits = this.hits.concat( collisionSystem.hits );
|
||||
Array.prototype.push.apply( this.colliders, collisionSystem.colliders );
|
||||
Array.prototype.push.apply( this.hits, collisionSystem.hits );
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user