Search Unity

2d distance joint strength/anchor issue

Discussion in 'Physics' started by polimerjones, Jun 11, 2019.

  1. polimerjones

    polimerjones

    Joined:
    Jun 11, 2018
    Posts:
    5
    i am having two issues with the distance joint.

    I am using two joints, one on each side of a platform. I intend to have the character stand on the platform and reduce the distance to raise the platform.

    Issue 1 is that the anchors start pulling away from the starting anchor point

    Issue 2 is that if the character is on the platform and I raise the platform using the joints, the movement is sluggish like its lifting a ton even with low mass on the character. When I jump the platform speeds up.

    Any thoughts on the matter would be appreciated.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    All joints in the 2D physics engine (Box2D) are "soft" to some degree however know that you are free to increase the number of position/velocity iterations used by the solver and not just use the defaults. Doing this can mitigate (to some degree) this issue but again, it won't necessarily eliminate it.