Back to project page mgcube.
The source code is released under:
qp is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported http://creativecommons.org/licenses/by-nc-nd/3.0/ Your are not allowed to publish this game under your name.
If you think the Android project mgcube 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 de.redlion.qb; /*from www . ja va 2 s . c o m*/ import com.badlogic.gdx.math.Matrix4; import com.badlogic.gdx.math.Vector3; public class Renderable implements Comparable<Renderable> { public Vector3 position = new Vector3(); public float sortPosition; public boolean isCollidedAnimation = false; public float collideAnimation = 0.0f; public boolean isHighlightAnimation = false; public boolean isHighlightAnimationFadeInOut = false; public float highlightAnimation = 0.0f; public Matrix4 model = new Matrix4(); @Override public int compareTo(Renderable o) { if(!(o instanceof Renderable)) return -1; if((o).sortPosition<this.sortPosition) return -1; return 1; } }