Keeping object hovering/floating mid-air
Posted: Sat Apr 19, 2014 7:09 pm
Hey.
So, I've seen a few topic about that around already, but still can't seem to get it right.
How one would keep an object floating mid-air on some height?
I have a very light object of 0.5g
Gravity is set to 9.801
What kind of force should I apply to make that light object floating on the height of 3-5cm?
I have tried using
applyCentralImpulse for (0f, MASS*G*FLOAT_FACTOR*delta) where delta is time between frames, playing with FLOAT_FACTOR values, but objects keep flying up to the sky and don't want to stay on 3-5cm height no matter what.
So, I've seen a few topic about that around already, but still can't seem to get it right.
How one would keep an object floating mid-air on some height?
I have a very light object of 0.5g
Gravity is set to 9.801
What kind of force should I apply to make that light object floating on the height of 3-5cm?
I have tried using
applyCentralImpulse for (0f, MASS*G*FLOAT_FACTOR*delta) where delta is time between frames, playing with FLOAT_FACTOR values, but objects keep flying up to the sky and don't want to stay on 3-5cm height no matter what.