|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulation.engine.BodyConnection
public class BodyConnection
A connection to a body. When the body moves or rotates, the connection stays on the same relative point.
Constructor Summary | |
---|---|
BodyConnection(Body body,
Vector point)
Creates a connection on a certain body at a certain point |
Method Summary | |
---|---|
void |
addImpulse(Vector imp)
Applies a force at this point to the body |
Body |
connectedBody()
Get the body this is connected to |
Vector |
connectedPoint()
Get the point's current location |
Vector |
getVelocity()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BodyConnection(Body body, Vector point)
body
- what body the connection is onpoint
- where the connection isMethod Detail |
---|
public Vector connectedPoint()
public void addImpulse(Vector imp)
imp
- the impulse to addpublic Body connectedBody()
public Vector getVelocity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |