collision and responce
Hi all! I have a program that contain boxes and the boxes can collide with eachother. How do I do the collision and responce?
1. Move all boxes to their next location, then test all for collision and then do responce for all boxes.
2. Move one box, test collision, respond to it, then go to the next box
I was thinking about doing the first one, but the second one looks easier to implement. What do you think?
Are there any better ways? Will it still work if I add more reality to it later (like rotation of the cases and force/friction)?
brain21
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement