• set velocity of a entity with angle
    1 replies, posted
how could i set the velocity of a player with just a angle
You mean you want to move an object in the direction an angle faces? Angle/Forward Chair Throwing Gun Check out those. If your angle variable is called myangle, and a player is referenced by a variable myplayer, and some number of speed you want the player to move at is called myintensity: myplayer:SetVelocity(myangle:Forward()*myintensity) The angle's forward is a very small number, just meant to represent the ratios of x y and z that together create the direction. Velocities work the same way (they use vectors), where the ratios decide the direction, but the same ratio can be maintained with larger numbers to increase the intensity. In this case that means a higher multiple for the vector gives it more speed.
Sorry, you need to Log In to post a reply to this thread.