Search Unity

Physics: Force required to stop a moving object, clarification needed.

Discussion in 'Physics' started by JesterGameCraft, Feb 11, 2019.

  1. JesterGameCraft

    JesterGameCraft

    Joined:
    Feb 26, 2013
    Posts:
    452
    Hi,

    I'm working with physics and am seeing behaviour I'm not expecting. I have a simple cube with rigidbody. All axis are locked except y position axis. There is no drag force, no gravity and object has mass of 1, so all pretty standard. Essentially a cube floating in space.

    I apply a force of (0, -100, 0) which causes the cube to move down at -1 rb.velocity.y. Now in real physics I would have to apply an equal counter force to stop this object (0, 100, 0). But if I do the cube starts to move upwards at rb.velocity.y 1. Now if instead of (0, 100, 0) I apply force (0, 50, 0) to the cube when it's moving at -1 then it stops. So I have to apply half of the force to get the cube to stop and get velocity to 0.

    Is this expected behaviour? Can anyone explain why this is happening?

    Regards.
     
  2. JesterGameCraft

    JesterGameCraft

    Joined:
    Feb 26, 2013
    Posts:
    452
    Move along, nothing to see here. Turns out one of my test functions was adding additional force I forgot about. Everything is working as it should. Please disregard my post above.