Search Unity

Rotation Lock

Discussion in 'Editor & General Support' started by nickavv, Aug 29, 2006.

  1. nickavv

    nickavv

    Joined:
    Aug 2, 2006
    Posts:
    1,801
    How do I make it so that the lock rotation thing on a Rigidbody only locks the X and Z axis, so that the Y can still rotate?
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    What exactly do you want to do?

    Usually how this works is. You use freezeRotation which gives full control to scripts over rotation.
    Then you rotate it using transform.Rotate instead or in any way you like.
     
  3. nickavv

    nickavv

    Joined:
    Aug 2, 2006
    Posts:
    1,801
    I want to make it so that left and right make your character rotate around its Y axis, but so that you can't tip over by moving around. I checked the Freeze Rotation, but now it wont rotate left and right at all

    EDIT: Never mind. -_-