Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Collision problem.

Author
Message
Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 1st Apr 2009 20:46
Hello!

i'm making a test with movement and collisions, but i just can't get the collision code work.

i'm trying to prevent the crush between object 1 and 3, but the object3 catches the object1 when object1 turns. so can someone tell me how to make the collision between those two?

so the code goes like this:



you can delete object2 from the code it's not important.
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 3rd Apr 2009 21:45
If I've understood the problem correctly, you don't need any collision detection. All you need to do is make sure that the big box stays a certain distance behind the little box. Take a look at this code and tell me if it's what you needed.



And you have very interesting variable names... you speak Finnish, no?

Login to post a reply

Server time is: 2024-09-28 04:15:42
Your offset time is: 2024-09-28 04:15:42