Quote:
Originally Posted by rhelgeby
Btw, you only need two position coordinates to create a cuboid. The rest can be calculated.
|
Yes, I know
The difficulty I'm having is when I have a non-rectangular shape, e.g. a trapezoid, I'm not sure how to determine when someone is in the volume. Currently I check if they're within the min/max coords, but that doesn't always work .
Quote:
Originally Posted by FaTony
this can be done with OnGameFrame and math (i mean geometry...).
|
My maths isn't very good and I was hoping for some help there, or being pointed in the right direction. I did a general google search for how to do this and found many sites with very complex methods of determining if something is in a volume; which I didn't really understand.
Thanks.