Alice Community

Alice Community (
-   How do I...? (
-   -   Please help, need some assistance.! (

whitechocolate11 06-13-2011 10: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 03: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 03:46 AM.

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