Poll: Who wants a Protection plugin?
You do not have permission to vote in this poll.
Yes, Gimmeh!
100.00%
5 100.00%
Nah, Meh
0%
0 0%
Total 5 vote(s) 100%
* You voted for this item. [Show Results]

Who wants a Protection plugin here? & A Question
#2
I believe this is one of the most requested plugins Wink

I don't quite follow your code. Are you making just one comparison of the coord? then you're "protecting" too much - nothing to the east (or whatever direction it is) of this coord can't be touched. You're much better off using a cCuboid class for storing the coords - it can store two pairs of XYZ coords, sort them and then it takes just a function call to know whether a point is inside or not.

The docs on the cCuboid class should be up to date; however I'm thinking about adding more IsInside() function flavors - ones taking a set of three coords rather than a vector.
Reply
Thanks given by: supertransformer


Messages In This Thread
RE: Who wants a Protection plugin here? & A Question - by xoft - 05-07-2013, 02:10 AM



Users browsing this thread: 1 Guest(s)