Created
March 1, 2015 00:11
-
-
Save latenitecali/24d69bc99d886358520b to your computer and use it in GitHub Desktop.
collider fixed!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var flameHitResults : Array<CollisionData> = Collision.testShapes(engineDamageFlameCollider, StateGamePlay.asteroidColliderPool); | |
| if(flameHitResults.length > 0) { | |
| for(hit in flameHitResults) { | |
| for(asteroid in StateGamePlay.asteroidPool) { | |
| if(hit.shape2.name == asteroid.name) { | |
| asteroid.destroy(); | |
| asteroid = null; | |
| StateGamePlay.asteroidColliderPool.splice(StateGamePlay.asteroidColliderPool.indexOf(hit.shape2), 1); | |
| hit.shape2.destroy(); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment