How to Collision response

By Malco_123 | Jan 9, 2009

actionscript3

I have been messing around with collision response for a week or so now and have slowly been building up a series of calculations for flash to do after two objects collide. I have it now so that it properly simulates momentum of two rigid bodies collideing in two demsions, however these objects are squares and they do not rotate.

What I would like to know is how other people have simulated a circle bouncing off another stationary, fixed, circle. I know it is complicated but if i could get a look at the math I think I will be able to glean some understanding of how to program it with what I have already.

Can anyone help?

P.S. I do have some code already but it is very disorganized and dosen’t work properly so I won’t bother posting it unless someone wants it specifically.

actionscript3

Please reply at our Forum

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2007 ActionScript 3.0