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; //from w ww .j av a 2s . c o m import com.artemis.Component; import com.badlogic.gdx.math.Rectangle; /** * @author Ashley Davis (SgtCoDFish) */ public class Solid implements Component { public static final float DEFAULT_WEIGHT = 1.0f; public boolean invertedGravity = false; public float weight = DEFAULT_WEIGHT; public Rectangle boundingBox = null; public boolean isColliding = true; public float getGravitySignum() { return (!invertedGravity ? 1.0f : -1.0f); } public boolean isColliding() { return isColliding; } @Override public void reset() { boundingBox = null; weight = DEFAULT_WEIGHT; invertedGravity = false; isColliding = true; } }