PDA

View Full Version : how do i set collisions with objects


axerader131
01-25-2007, 08:05 PM
I am wondering ho to set it so that i can fly an airplane through a ring and the ring will change color or disappear.

(i am making a simple flying game like the flight simulator example) :) THANK YOU:) :)

DrJim
01-26-2007, 01:06 PM
Look at the "CheckForCollisionWithRing" method in the flight simulator example. The key for this simple collision detection is the If statement which checks whether or not the biplane is within 1 meter of the ring.

hooverhs
02-06-2007, 01:50 PM
the best way for what you want to do is:

If {Airplane} is within {1meter} of {Torus}
[DO TOGETHER]
{Torus} Resize to {0.000005}
{Torus} Turn {Left}{2 Revolutions}

hooverhs
02-06-2007, 01:51 PM
Oh, and Anything inside the {}'s can be changed. The torus is the default name for the ring.

tmorgan1689
02-06-2007, 02:09 PM
Actually another way to do this is just after the if in Hoovers example above just set {Torus} setShowing False, or the opacity to 0%. This makes the object invisible. But if you want a fancer method I would do it Hoovers way.