Back to project page hiddenmarble.
The source code is released under:
Apache License
If you think the Android project hiddenmarble 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.mygdx.hiddenmarble.entities; // ww w . j a va 2 s.com import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.physics.box2d.Body; /** A game entity with a dynamic Box2D body. */ public abstract class AbstractDynamicEntity extends AbstractEntity implements Entity, DynamicEntity { /** Creates a dynamic entity with the specified Box2D body. */ protected AbstractDynamicEntity(Body body) { super(body); } @Override public final Vector2 getLinearVelocity() { return getBody().getLinearVelocity(); } }