Search Unity

Zero gravity momentum

Discussion in 'Physics' started by h0nka, Oct 8, 2015.

  1. h0nka

    h0nka

    Joined:
    Apr 7, 2013
    Posts:
    109
    Hi,

    I am making a 2D game where an 'unconscious' astronaut (2D ragdoll) can be pushed around in space by objects moved around with the mouse. I really want the astronaut to conserve some momentum from collision from the mouse controlled object when he is hit by it. As it is now, the object can push the ragdoll but the object does not continue to float in the direction pushed, as it would be in zero gravity. I am not sure how to do this in Unity. I have set gravity to 0 in the editor.

    Here is a picture of the ragdoll and the 'pushing' object:

    http://puu.sh/kCOry/95215de37b.png

    Thanks!
     
    Last edited: Oct 8, 2015
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Your drag needs to be 0 as well.
     
  3. h0nka

    h0nka

    Joined:
    Apr 7, 2013
    Posts:
    109
    I have set angular and linear drag to 0 for all rigidbodies of the ragdoll.