|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jinx.action.Actor
net.jinx.physics.gravity.Gravity
public class Gravity
| Field Summary | |
|---|---|
static float |
GCU
The gravitational constant of the universe. |
| Constructor Summary | |
|---|---|
Gravity()
|
|
| Method Summary | |
|---|---|
void |
added(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been added to the simulation. |
void |
applyForce(PhysicalObject o1)
Provides the force acting on object due to this Force. |
protected static Vector |
getForce(PhysicalObject o1,
PhysicalObject o2)
|
static Vector |
getObjectCOG(PhysicalObject obj)
Provides the center of gravity of object in object coordinates. |
static Vector |
getWorldCOG(PhysicalObject obj)
|
boolean |
isBigMass(PhysicalObject obj)
Determines if obj is a gravitationally significant mass. |
protected void |
processEvent(ActorEvent event)
Does nothing. |
void |
removed(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been removed from the simulation. |
| Methods inherited from class net.jinx.action.Actor |
|---|
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float GCU
| Constructor Detail |
|---|
public Gravity()
| Method Detail |
|---|
public static Vector getObjectCOG(PhysicalObject obj)
obj - the PhysicalObject.
public static Vector getWorldCOG(PhysicalObject obj)
public boolean isBigMass(PhysicalObject obj)
obj - the PhysicalObject.
public void added(PhysicalObject obj)
Force
added in interface Forceobj - the PhysicalObject that was added.public void removed(PhysicalObject obj)
Force
removed in interface Forceobj - the PhysicalObject that was removed.public void applyForce(PhysicalObject o1)
Force
applyForce in interface Forceo1 - the PhysicalObject.
protected static Vector getForce(PhysicalObject o1,
PhysicalObject o2)
protected void processEvent(ActorEvent event)
processEvent in class Actorevent - the ActorEvent to process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||