Back to project page mobius.
The source code is released under:
MIT License
If you think the Android project mobius 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.sgtcodfish.mobiusListing.components; /*w w w. j av a 2 s .c o m*/ import com.artemis.Component; import com.badlogic.gdx.math.Vector2; /** * Indicates that an Entity can move. * * @author Ashley Davis (SgtCoDFish) */ public class Velocity implements Component { public Vector2 velocity = null; public Velocity() { reset(); } @Override public void reset() { if (velocity == null) { velocity = new Vector2(); } velocity.x = 0.0f; velocity.y = 0.0f; } }