Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

How to make automatic swing (Hinge joint 2D?)

Discussion in 'Physics' started by unity_jBOSmd1e1IroQw, Nov 6, 2018.

  1. unity_jBOSmd1e1IroQw

    unity_jBOSmd1e1IroQw

    Joined:
    Sep 30, 2018
    Posts:
    42
    I'm trying to make a simple automatic swing that swings to left and right without losing speed. I am able to create object that rotates full 360 degrees using hingejoint2d and using it's motor, but I don't know how I would create a swing (I tried playing with angle limits but with no luck). The closest I was is to use motor and then disable it, which causes the object to swing from one side to other, but it loses speed over time.
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    3,115
    Reduce / remove drag of rigid body.