|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.dev.joode.WorldObject
net.java.dev.joode.force.Force
net.java.dev.joode.force.NewtonGravity
public class NewtonGravity
Applies a constant force in a constant direction to all bodies with their dxBodyGravity bit set
| Field Summary |
|---|
| Fields inherited from class net.java.dev.joode.WorldObject |
|---|
data, tag, world |
| Constructor Summary | |
|---|---|
NewtonGravity(World world,
Vector3 gravity)
|
|
| Method Summary | |
|---|---|
void |
applyForce(Body body)
applies the force to a body that is in simulation, called by the stepper functions |
NewtonGravity |
cloneState(ClonedReferences util)
deep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object. |
| Methods inherited from class net.java.dev.joode.force.Force |
|---|
destroy |
| Methods inherited from class net.java.dev.joode.WorldObject |
|---|
partialCloneWorldObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewtonGravity(World world,
Vector3 gravity)
| Method Detail |
|---|
public void applyForce(Body body)
Force
applyForce in class Forcepublic NewtonGravity cloneState(ClonedReferences util)
SimStatedeep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object. The util object ensures that multiple clones of the same object are not performed during a clone operation.
cloneState in interface SimStateutil - instanciate a new one if top level cloning
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||