|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Collidable
Method Summary | |
---|---|
Coord2D |
getCenterOfMass()
Gets the object's current center of mass in world coordinates |
PolygonPrimitive<?> |
getCollisionBounds()
Gets the collision boundaries for the object |
long |
getEndMovementTime(long currentTime)
|
double |
getMass()
Gets the mass of the collidable object |
long |
getStartMovementTime()
|
Vector2D |
getVelocity()
Gets the object's current velocity |
void |
setCenterOfMass(Coord2D com)
Sets the object's new center of mass in world space coordinates (i.e. |
void |
setVelocity(Vector2D velocity)
Sets the object's new velocity |
Method Detail |
---|
Coord2D getCenterOfMass()
PolygonPrimitive<?> getCollisionBounds()
long getEndMovementTime(long currentTime)
currentTime
- The current time
double getMass()
long getStartMovementTime()
Vector2D getVelocity()
void setCenterOfMass(Coord2D com)
com
- New center of mass in world coordinatesvoid setVelocity(Vector2D velocity)
velocity
- WRITEME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |