Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Please help, need some assistance.! (http://www.alice.org/community/showthread.php?t=6755)

whitechocolate11 06-13-2011 11:21 PM

Please help, need some assistance.!
 
I have an object and i surrounded the object with walls, then I wrote a method to what should happen to the object if it is too close to the walls.

However what I need help with is how to detect whether the object in the center is close to the many other objects which form the wall.

I created a list of all the objects forming the wall and I attempted to use an if/else statement to determine while the center object is close to the wall, however using the list I could only select whether the object is close to the first or last wall of the list?

Any suggestions?

John Smithy 06-16-2011 04:53 PM

1 Attachment(s)
You need a collision detection method
Here I got this from Dameria

I've used it for school, helps a lot


All times are GMT -5. The time now is 02:20 AM.

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