Quote:
Originally Posted by whosyourdaddy
well this is what im using
Code:
public IsBetween( player[3] , iOrigin1[3] , iOrigin2[3] )
{
if( abs( iOrigin1[0] - player[0] ) < 40 && abs( iOrigin1[1] - player[1] ) < 40 && iOrigin2[2] <= player[2] <= iOrigin1[2] )
return 1
return 0
}
|
You're checking if a player is:
1. Horizontally, within a square 40x40 units in size with center at point 1.
2. Above point 2 and below point 1.
Is that what you were looking for? I would never say "user in between two origins" if that were my desired result.
Quote:
Originally Posted by whosyourdaddy
this is what it is looking for
point 1
x
x
x
x
x
| player
x
x
x
x
x point 2
|
This is meangingless to me, so I have to open MSPaint. (In Windows 7

)
Again, I think you're clueless, unless you're confused about the meaning of being between two origins. Maybe you've just confused me.
- Which situation do you want to detect? (in two dimensions, for my sanity)
- Bugsy's double cone (not exactly like this, but close enough <_<)
[img]http://img36.**************/img36/3800/bugsy1.png[/img]
- Bugsy's traceline
[img]http://img34.**************/img34/5483/traceline.png[/img]
- Your bounding box
[img]http://img34.**************/img34/7733/whos1.png[/img]
- Your square + z limit
[img]http://img198.**************/img198/3413/whos2.png[/img]
- My understanding of "between two points", (between two parallel planes, each plane defined by a point)
[img]http://img38.**************/img38/6237/stupok.png[/img]
__________________