|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.eside.flingbox.physics.ScenePhysics
public class ScenePhysics
Stores all physic object in scene and make those interact. ScenePhysics manage thread for update objects
Field Summary | |
---|---|
GravitySource |
mGravity
|
Constructor Summary | |
---|---|
ScenePhysics(GravitySource gravity)
Initializes an empty scene |
Method Summary | |
---|---|
void |
add(PhysicBody body)
Adds physical object |
boolean |
isSimulating()
|
boolean |
remove(PhysicBody body)
|
void |
run()
Thread for simulation |
void |
startSimulation()
Starts simulation |
void |
stopSimulation()
Sends message to kill and waits |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public GravitySource mGravity
Constructor Detail |
---|
public ScenePhysics(GravitySource gravity)
Method Detail |
---|
public void add(PhysicBody body)
object
- object to be addedpublic boolean remove(PhysicBody body)
public void startSimulation()
public void stopSimulation()
public boolean isSimulating()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |