Back to project page hackfmi-ragdoll-physics.
The source code is released under:
GNU General Public License
If you think the Android project hackfmi-ragdoll-physics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.midtownmadness.bubblecombat.physics; /* w w w . j a va2 s .c o m*/ import org.jbox2d.common.Vec2; import org.jbox2d.dynamics.Body; import org.jbox2d.dynamics.World; import com.midtownmadness.bubblecombat.multiplay.Callback; public class MovementRequest extends PhysicsRequest { private Body body; private Vec2 movement; public MovementRequest(Body body, Vec2 movement, Callback<MovementRequest> callback) { super(callback); this.body = body; this.movement = movement; } @Override protected void apply(World world) { body.applyForceToCenter(movement.mul(1000)); } }