Mallet Engine
2
Entity-Component based game engine, written in Java.
|
Public Member Functions | |
OBB () | |
OBB (final AABB _aabb) | |
OBB (final Vector2 _topLeft, final Vector2 _topRight, final Vector2 _bottomLeft, final Vector2 _bottomRight) | |
void | setPosition (final float _x, final float _y) |
void | translate (final float _x, final float _y) |
void | setOffset (final float _x, final float _y) |
void | setFromOBB (final OBB _obb) |
void | setDimensionsFromOBB (final OBB _obb) |
Vector2 | getAbsolutePoint (final int _index) |
Vector2 | getCenter () |
final void | setRotation (final Vector2 _point, final float _theta) |
final void | updateAxesAndEdges () |
Public Attributes | |
Vector2 | position = new Vector2() |
Vector2 | offset = new Vector2() |
Vector2[] | points = new Vector2[4] |
Vector2[] | axes = new Vector2[4] |
Static Public Attributes | |
static final int | TOP_LEFT = 0 |
static final int | TOP_RIGHT = 1 |
static final int | BOTTOM_LEFT = 2 |
static final int | BOTTOM_RIGHT = 3 |
com.linxonline.mallet.physics.OBB.OBB | ( | final AABB | _aabb | ) |
com.linxonline.mallet.physics.OBB.OBB | ( | final Vector2 | _topLeft, |
final Vector2 | _topRight, | ||
final Vector2 | _bottomLeft, | ||
final Vector2 | _bottomRight | ||
) |
Vector2 com.linxonline.mallet.physics.OBB.getAbsolutePoint | ( | final int | _index | ) |
Get the points absolute position, this includes the offset and position of the OBB. returns a new Vector2().
void com.linxonline.mallet.physics.OBB.setDimensionsFromOBB | ( | final OBB | _obb | ) |
Set the points and axes from the OBB being passed in. Keep the original position & offset.
void com.linxonline.mallet.physics.OBB.setFromOBB | ( | final OBB | _obb | ) |
Set the points and axes from the OBB being passed in. This also includes the position & offset.
void com.linxonline.mallet.physics.OBB.setOffset | ( | final float | _x, |
final float | _y | ||
) |
void com.linxonline.mallet.physics.OBB.setPosition | ( | final float | _x, |
final float | _y | ||
) |
final void com.linxonline.mallet.physics.OBB.setRotation | ( | final Vector2 | _point, |
final float | _theta | ||
) |
NEEDS TO BE REIMPLEMENTED
void com.linxonline.mallet.physics.OBB.translate | ( | final float | _x, |
final float | _y | ||
) |
final void com.linxonline.mallet.physics.OBB.updateAxesAndEdges | ( | ) |
Vector2 [] com.linxonline.mallet.physics.OBB.axes = new Vector2[4] |
final int com.linxonline.mallet.physics.OBB.BOTTOM_LEFT = 2 [static] |
final int com.linxonline.mallet.physics.OBB.BOTTOM_RIGHT = 3 [static] |
Vector2 [] com.linxonline.mallet.physics.OBB.points = new Vector2[4] |
final int com.linxonline.mallet.physics.OBB.TOP_LEFT = 0 [static] |
final int com.linxonline.mallet.physics.OBB.TOP_RIGHT = 1 [static] |