Skip to main content
GameDev.net gamedev.net
🔒 Locked

another collision detection question...

Started by FreJa Mar 22, 2003 at 8:24 AM 0 replies 150+ views
Original Post
FreJa
FreJa
Hi, I''m working on some 2d collision detection... How do tell the object involved in the collision to just stay in the position it is? I tried something like xPos -= 1 ... it works, but I think it''s not very.... you know... Thanks
"Through me the road to the city of desolation,Through me the road to sorrows diuturnal,Through me the road among the lost creation."
Prosper/LOADED
Prosper/LOADED
I assume you move your objects, then test for collision. You could instead first test if the future position of the object is valid and move it only if it pass the test.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.