Vectors - calculating position in front of a player
I know that this problem has been already discussed, but I just can't find any useful topic about it.
I'm looking for a piece of code that can calculate origin, let's say, 40.0 units in front of a player. Height should be also observed (start point is a player, end point is the point where the player is aiming). It's probably some traceline function + xs, but I can't find any reference to xs functions therefore I don't know how to use them. |
Re: Vectors - calculating position in front of a player
Something simple:
Code:
|
Re: Vectors - calculating position in front of a player
Thank you, Exolent.
I tried to make some calculations myself but they didn't work correctly. This, on the other hand, seems to be working properly. |
| All times are GMT -4. The time now is 23:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.