AS3 Collision Resolution
Members - Reputation: 218
Posted 13 September 2012 - 07:04 AM
To resolve collisions you need to use some simple mathematics with vectors.
If you need to lock object movement when it's under wall (or floor, or ceiling), you need to check test collision and if it was found, prevent changing object coordinates.
If you need to reflect object movement (as billiard balls, for example), you just need compute movement vector according to simple physics rule. These rules depends on your environment. In simple situation it will be just a ray reflection. Of course, its very primitive methods, if you need more realistic image, you need to know physics laws and formulas. But often for AS3 it's enough.
Members - Reputation: 381
Posted 14 September 2012 - 09:43 AM
Hey, im trying to figure out collision resolution in as3. I have detection and stuff working i just cant figure out how to resolve it!?! any ideas?
If you're looking for polygonal collision detection and resolution in AS3, I have a couple of articles which might interest you: