vec_for_angle(temp, player.pan); //rotate the vector to the player rotation vec_normalize(temp, 20); //move the rotated vector 20 quants forward vec_add (temp, player.x); // put it in front of the player
temp will now be in front of the player, regardless of how you turn
Click and join the 3dgs irc community! Room: #3dgs