Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
how do i set collisions with objects
Old
axerader131
Guest
 
Status:
Posts: n/a
Default how do i set collisions with objects - 01-25-2007, 07: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
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 01-26-2007, 12: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.
   
Reply With Quote
Old
hooverhs
Guest
 
Status:
Posts: n/a
Default 02-06-2007, 12: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}
   
Reply With Quote
Old
hooverhs
Guest
 
Status:
Posts: n/a
Default 02-06-2007, 12:51 PM

Oh, and Anything inside the {}'s can be changed. The torus is the default name for the ring.
   
Reply With Quote
Old
tmorgan1689
Guest
 
Status:
Posts: n/a
Default 02-06-2007, 01: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.
   
Reply With Quote
Flight simulator
Old
sydneysue2001
Guest
 
Status:
Posts: n/a
Default Flight simulator - 04-28-2010, 09:03 PM

Quote:
Originally Posted by hooverhs View Post
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}
I tried this and it doesn't work. What do you put in Else?
   
Reply With Quote
Old
ranchman20
Guest
 
Status:
Posts: n/a
Default 04-29-2010, 11:44 AM

nothing, ill send an example

its named funny i know.
Attached Files
File Type: a2w plabe.a2w (847.0 KB, 19 views)
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.