Results 1 to 6 of 6
  1. #1
    kuyakyloo's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    in my house
    Posts
    59
    Reputation
    10
    Thanks
    6
    My Mood
    Sleepy

    roll yaw and pitch

    Anyone know how to change the roll, yaw, or pitch of something?
    Code:
    ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ PHILIPPINES
    ▓░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
    ░░▓░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒
    ░▓▓▓░▓░░░░░░░░░░░░░░
    ░░▓░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    ▓░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    ░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ FTW

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    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. #3
    kuyakyloo's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    in my house
    Posts
    59
    Reputation
    10
    Thanks
    6
    My Mood
    Sleepy
    Thanks. Now I got another question. How would you separate an angle (0, 0, 0) into three variables?
    Code:
    ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ PHILIPPINES
    ▓░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
    ░░▓░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒
    ░▓▓▓░▓░░░░░░░░░░░░░░
    ░░▓░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    ▓░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    ░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ FTW

  5. #4
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by kuyakyloo View Post
    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. #5
    kuyakyloo's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    in my house
    Posts
    59
    Reputation
    10
    Thanks
    6
    My Mood
    Sleepy
    I meant like if you have an angle (1, 2, 3) how would you take the second one from it?

  7. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by kuyakyloo View Post
    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]

Similar Threads

  1. [Source Code] Player Yaw and Pitch
    By CAFlames in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 08-27-2011, 11:49 AM
  2. Pitch, Yaw, Roll
    By _Fk127_ in forum Combat Arms Coding Help & Discussion
    Replies: 3
    Last Post: 04-27-2011, 06:34 PM
  3. Gun game and roll the dice.
    By SofaKingH4rd in forum Call of Duty Modern Warfare 2 Help
    Replies: 14
    Last Post: 08-01-2010, 09:14 AM
  4. Rock and roll all ni... WTF?! OMG!
    By recon276 in forum General
    Replies: 7
    Last Post: 11-21-2009, 12:12 AM
  5. THAT FUCKING RICK AND ROLLING
    By XxTylerxX in forum Flaming & Rage
    Replies: 51
    Last Post: 08-16-2009, 03:44 PM