public class StaticCollisionPoint extends Point implements CollisionObject
CollisionPoint
implementation.positionChangeListeners
Constructor and Description |
---|
StaticCollisionPoint() |
StaticCollisionPoint(float x,
float y) |
StaticCollisionPoint(int id) |
StaticCollisionPoint(int id,
float x,
float y) |
StaticCollisionPoint(int id,
Point point) |
StaticCollisionPoint(Point point) |
Modifier and Type | Method and Description |
---|---|
void |
forceTo(float x,
float y)
Sets the current x and y coordinate to the specified x and y and force updates the
rendering position to match
|
int |
getId()
Returns the unique id of this object
|
int |
getRenderX()
Returns the render x coordinate of this object
|
int |
getRenderY()
Returns the render y coordinate of this object
|
void |
interpolate(float alpha)
Called during interpolate phase each interpolate()
|
void |
preUpdate()
Called at the start of each update() before any changes are made to this object
|
add, add, addPostionChangeListener, clearPositionChangeListeners, copy, dispose, equals, equals, equals, getDistanceTo, getDistanceTo, getX, getY, isOnLineBetween, moveTowards, moveTowards, mul, mulAdd, mulAdd, notifyPositionChangeListeners, removePositionChangeListener, rotateAround, rotateAround, scl, scl, scl, set, set, setDisposed, setX, setXY, setY, sub, sub
angle, angle, angleRad, angleRad, clamp, cpy, crs, crs, dot, dot, dot, dst, dst, dst, dst2, dst2, dst2, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, fromString, hashCode, hasOppositeDirection, hasSameDirection, interpolate, isCollinear, isCollinear, isCollinearOpposite, isCollinearOpposite, isOnLine, isOnLine, isPerpendicular, isPerpendicular, isUnit, isUnit, isZero, isZero, len, len, len2, len2, lerp, limit, limit2, nor, rotate, rotate90, rotateRad, setAngle, setAngleRad, setLength, setLength2, setToRandomDirection, setZero, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dispose
addPostionChangeListener, getDistanceTo, getDistanceTo, getX, getY, moveTowards, moveTowards, removePositionChangeListener, setX, setXY, setY
public StaticCollisionPoint()
public StaticCollisionPoint(float x, float y)
public StaticCollisionPoint(Point point)
public StaticCollisionPoint(int id)
public StaticCollisionPoint(int id, float x, float y)
public StaticCollisionPoint(int id, Point point)
public int getId()
CollisionObject
getId
in interface CollisionObject
public void preUpdate()
CollisionObject
preUpdate
in interface CollisionObject
preUpdate
in interface Interpolatable
public void interpolate(float alpha)
CollisionObject
interpolate
in interface CollisionObject
interpolate
in interface Interpolatable
alpha
- The alpha value between 0.0 and 1.0public void forceTo(float x, float y)
CollisionObject
forceTo
in interface CollisionObject
x
- The x coordinate to sety
- The y coordinate to setpublic int getRenderX()
CollisionObject
getRenderX
in interface CollisionObject
public int getRenderY()
CollisionObject
getRenderY
in interface CollisionObject