May 6, 2011 at 5:28 PM
Edited May 6, 2011 at 5:38 PM
Hello! I've got a body, and I need to apply an upwards force to it appropriate to all the downwards forces acting on it.
Best way to describe it is like a lift, I guess - no matter how many elephants and cars are on the 'lift' it always moves upwards at the same speed. Even if there's nothing on it. Or if there's a single feather on it. Whatever.
private void moveLiftUp()
float _f = getForcesActingOnLift();
// apply a force that moves the lift upwards
_fixture.Body.ApplyLinearImpulse(new Vector2(0, _f + 1));
FULL DISCLOSURE: I'm simplifying here. It's not just a lift, but that's the best way I can describe the problem easily. What I'm saying it I can't use a Kinematic body/ path combo ;)
Any suggestions would be much appreciated :)