Search Unity

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

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Distance Joint 2D slow & loses momentum

Discussion in 'Physics' started by RepoGames, Feb 23, 2018.

  1. RepoGames


    Apr 15, 2016
    Hey, I'm trying to implement grappling hook
    Using Joints 2D I've encountered problems:

    1)When I decrease the distance which is how grappling hook works the speed is very limited. E.g. decreasing it instantly from 20 to 3 goes veeeery slow so the whole process is not dependent on my speed, rather on some underlying physics.
    2) When I cast grappling hook and my velocity is facing top then releasing the joint I lose
    3) Im moving my character changing its velocity( linear platformer standard movement) and I can't really do it using AddForce or MovePosition because I don't want any acceleration nor ignoring gravities and other forces so I change velocity. So when hanging on a rope the character behaves very strangely as this velocity changes destroy the joint functionality.

    Any ideas how to cope with that?