Advertisement
theguild42

rotation

Mar 10th, 2020
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. rotation rot_xyzq;
  2.  
  3. default
  4. {
  5. state_entry()
  6. {
  7. vector xyz_angles = <0,1.0,0>; // This is to define a 1 degree change
  8. vector angles_in_radians = xyz_angles*DEG_TO_RAD; // Change to Radians
  9. rot_xyzq = llEuler2Rot(angles_in_radians); // Change to a Rotation
  10. }
  11.  
  12. touch_start(integer s)
  13. {
  14. llSetRot(llGetRot()*rot_xyzq/llGetRootRotation()/llGetRootRotation()); //Do the Rotation...
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement