com.cliffblaster.game.physics
Class AABB
java.lang.Object
com.cliffblaster.game.physics.AABB
public class AABB
- extends java.lang.Object
Constructor Summary |
AABB(float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
|
AABB(float x0,
float y0,
float z0,
float x1,
float y1,
float z1,
boolean pickable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x0
public float x0
y0
public float y0
z0
public float z0
x1
public float x1
y1
public float y1
z1
public float z1
TOP
public static final byte TOP
- See Also:
- Constant Field Values
BOTTOM
public static final byte BOTTOM
- See Also:
- Constant Field Values
LEFT
public static final byte LEFT
- See Also:
- Constant Field Values
RIGHT
public static final byte RIGHT
- See Also:
- Constant Field Values
FRONT
public static final byte FRONT
- See Also:
- Constant Field Values
BACK
public static final byte BACK
- See Also:
- Constant Field Values
XAXIS
public static final byte XAXIS
- See Also:
- Constant Field Values
YAXIS
public static final byte YAXIS
- See Also:
- Constant Field Values
ZAXIS
public static final byte ZAXIS
- See Also:
- Constant Field Values
AABB
public AABB(float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
AABB
public AABB(float x0,
float y0,
float z0,
float x1,
float y1,
float z1,
boolean pickable)
collides
public boolean collides(AABB otherBox)
moveTo
public void moveTo(float x,
float y,
float z)
grow
public AABB grow(float size)
timeToIntersect
public float timeToIntersect(Ray r)
getHitAxis
public int getHitAxis(Ray r)
grow
public AABB grow(float sizex,
float sizey,
float sizez)
moveRet
public AABB moveRet(float x,
float y,
float z)