Back to the Vavoom Forum Archives
Janis Legzdinsh
Crimson Wizard
Firebrand
scen
Crimson Wizard
Janis Legzdinsh
Crimson Wizard
Janis Legzdinsh
- to know whether a 3d line or line's segment crosses a polygon (a plane figure in 3d space)Not really.
- to get a point where line or line's segment crosses a simple planeThere's no function for this, but it's a simple calculation.
- to know whether 2d point is inside a polygon.No.
Crimson Wizard
Quote: - to know whether a 3d line or line's segment crosses a polygon (a plane figure in 3d space) Not really.Then, I wonder how engine checks if player is shooting at monster in presence of some level geometry (columns, windows etc)? I mean, how it finds out if a player's aim hits monster, but not some wall?
Quote: - to get a point where line or line's segment crosses a simple plane There's no function for this, but it's a simple calculation.Can you, please, give it here for me to be sure that I am not doing something wrong or unnecessary.
Firebrand
Quote: - to know whether a 3d line or line's segment crosses a polygon (a plane figure in 3d space) Not really.Then, I wonder how engine checks if player is shooting at monster in presence of some level geometry (columns, windows etc)? I mean, how it finds out if a player's aim hits monster, but not some wall? The only aiming functions are PTR_AimTraverse, AimLineAttack and Aim, AFAIK all the aiming is determined in them, you can look their logic to determine this, I would also recommend you to look at the shooting functions in Actor.vc too <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->. For the rest of it, I'll have to research some more, heh! <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->.
Crimson Wizard
Janis Legzdinsh