Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Search Fixed Angle Unity 5

Discussion in '2D' started by TOOMYXD, Feb 19, 2016.

  1. TOOMYXD

    TOOMYXD

    Joined:
    Feb 8, 2016
    Posts:
    36
    Hi,
    I'm looking Fixed Angle for 2D in Unity 5?
    Can one tell me where can I find the function?
     
  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,802
    I don't think Fixed Angle exists anymore. Try using the constraints. freezeRotation = true
     
  3. TOOMYXD

    TOOMYXD

    Joined:
    Feb 8, 2016
    Posts:
    36
    and the old setting where is the?
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,374
  5. TOOMYXD

    TOOMYXD

    Joined:
    Feb 8, 2016
    Posts:
    36
    so I should not "Fixed Angle" use but now "freezeRotation" ?
     
  6. TOOMYXD

    TOOMYXD

    Joined:
    Feb 8, 2016
    Posts:
    36
    What should I set so that the object is moving at "freezerotation"? (As with fixed angle ")?
     
  7. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,802
    Code (CSharp):
    1. GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeRotation;
     
  8. TOOMYXD

    TOOMYXD

    Joined:
    Feb 8, 2016
    Posts:
    36
    is Freeze Rotation Z = Fixed Angle
     
  9. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,374
    Yes, it has been answered for you several times above.
     
  10. TOOMYXD

    TOOMYXD

    Joined:
    Feb 8, 2016
    Posts:
    36
    ok Thanks