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

How to fixed position ?only fixed angle?

Discussion in '2D' started by dreamerflyer, Nov 26, 2014.

  1. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    hi all, How to fixed position like rigibody 3d? i can not find this feature in rigibody in 2d...
     
  2. Wrymnn

    Wrymnn

    Joined:
    Sep 24, 2014
    Posts:
    352
    Try: Is Kinematic.

    It should be above fixed angle.
     
  3. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    Kinematic is another feature to use,should not to fix position
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,415
    I presume you are referring to colliders (you don't specify)? If you don't add a Rigidbody2D component then all colliders will be static and be at a fixed position.
     
  5. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    Hi MelvMay,I want to make a lever ,which can rotate around it's center,when a rigidbody2d stand on the lever.
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,415
    So you could use a HingeJoint2D for that with one end connected to your Rigidbody2d and the other to another Rigidbody2d or more likely don't specify one and it'll connect to the world thus making it rotate around that world position. You can also limit the arc it can rotate through.
     
  7. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    get it ,thanks~