Search Unity

angular velocity for player model

Discussion in 'Physics' started by Dragnaros, May 26, 2018.

  1. Dragnaros

    Dragnaros

    Joined:
    May 26, 2018
    Posts:
    4
    Hello.
    i did search around the web and try everything to get a smooth rotation for my player the whole day and the best i found was angular velocity when using a ridgedbody player.
    i really like how it works all other methods are not smooth enougth for me but heres the problem.

    if my player rubs on a object or wall he starts to rotate because of friction.
    i already made a physic material without friction but it did not help.
    and if i fix the y rotation it works but i am no longer able to rotate by angular velocity.
    also setting the angular velocity to zero on and while colliding and then add my rotation did not work.

    any ideas?
     
  2. Dragnaros

    Dragnaros

    Joined:
    May 26, 2018
    Posts:
    4
    found the answer myself.
    i did overlook the Ridgedbody.MoveRotation.
    i thought it would have the same limitations as the velocity but id turns out that it works.

    it confuses me that Ridgedbody.MovePosition does not work whe x,y,z are locked while by rotation it works even if the rotations are locked. *headscratch*