PDA

View Full Version : Check if object is in a rectangle


acrimon
01-31-2009, 01:10 AM
Hi,

I need to check if a certain object is located in a given rectangle. In my world, I have a set of candy canes arranged in a rectangle, and I need to check if all of them are in a perimeter, which will be patrolled by another object. I'm wondering, is there any way that I can access the individual components of a Vector3 in Alice so I can perform the math accordingly? Or is there a different way to do this?

Thanks!