01.06.2010, 07:38
Hey there.
Could someone explain to me how to spawn something in front of the player, or behind, or on the side, etc.?
Adding to the players coordinates is not what I'm looking for. I want the thing spawned to spawn in front of the players view, like, 10.0 units away in the players facing direction.
It's probably some shitty cos/sin-shit formula that I can't even be bothered to figure out myself, so if someone would enlighten me here, thanks.
Could someone explain to me how to spawn something in front of the player, or behind, or on the side, etc.?
Adding to the players coordinates is not what I'm looking for. I want the thing spawned to spawn in front of the players view, like, 10.0 units away in the players facing direction.
It's probably some shitty cos/sin-shit formula that I can't even be bothered to figure out myself, so if someone would enlighten me here, thanks.