public class SimpleContact extends java.lang.Object implements Moveable
| Modifier and Type | Field and Description |
|---|---|
protected Moveable |
target
The Moveable for which this SimpleContact maintains information.
|
| Constructor and Description |
|---|
SimpleContact(Moveable mover)
Creates a new SimpleContact with information about the given
Moveable.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D |
getAcceleration()
Returns the acceleration vector of the underlying Moveable.
|
java.awt.geom.Point2D |
getLocation()
Returns the location of the underlying Moveable.
|
java.awt.geom.Point2D |
getVelocity()
Returns the velocity vector of the underlying Moveable.
|
protected Moveable target
public SimpleContact(Moveable mover)
mover - Given actual Moveable instancepublic java.awt.geom.Point2D getLocation()
getLocation in interface Moveablepublic java.awt.geom.Point2D getAcceleration()
getAcceleration in interface Moveablepublic java.awt.geom.Point2D getVelocity()
getVelocity in interface Moveable