# Thread: roll yaw and pitch

1. ## roll yaw and pitch

Anyone know how to change the roll, yaw, or pitch of something?

2. Use this if its a script_model, is the best: model RotateTo(pitch,yaw,roll , time);

Also you have this:

RotatePitch( pitch,time );
RotateYaw( yaw,time);
RotateRoll( roll,time);

You can also add aceleration and deceleration at end. You can also rotate a velocity if you are moving the object with RotateVelocity( velocity, time);

3. ## The Following User Says Thank You to Yamato For This Useful Post:

kuyakyloo (07-19-2011)

4. Thanks. Now I got another question. How would you separate an angle (0, 0, 0) into three variables?

5. Originally Posted by kuyakyloo
Thanks. Now I got another question. How would you separate an angle (0, 0, 0) into three variables?
I dont really understood you:

Model RotateTo((0,0,0),5); This would rotate to angles (0,0,0) in 5 seconds

6. I meant like if you have an angle (1, 2, 3) how would you take the second one from it?

7. Originally Posted by kuyakyloo
I meant like if you have an angle (1, 2, 3) how would you take the second one from it?
what?

angles = (angles[0],angles[1],angles[2])

Use angles[1]