Search Unity

Rigidbody rotational velocity no effect by MoveRoation?

Discussion in 'Scripting' started by Parappa, Oct 10, 2013.

  1. Parappa

    Parappa

    Joined:
    Jan 27, 2013
    Posts:
    77
    I'm trying to make a ridged body character

    If it's spinning and then you make it look a direction with MoveRotation() its velocitydoesnt stop and will continue spinning after you stop making it look in a direction

    Are you supposed to turn rigidbody characters with AddTorque()? Doesn't seem right

    Should I just add a line of code that reduces velocity when useing MoveRotation()?
     
    Last edited: Oct 10, 2013
  2. Marsupilami

    Marsupilami

    Joined:
    Sep 22, 2013
    Posts:
    21
    I suppose I'll answer a ? with a ?.. Why is the character spinning?
     
  3. JamesLeeNZ

    JamesLeeNZ

    Joined:
    Nov 15, 2011
    Posts:
    5,616
    you need to add negative torque