public abstract class RigidBody extends Component implements Updater
| Constructor and Description |
|---|
RigidBody() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addForce(org.apache.commons.math3.geometry.euclidean.threed.Vector3D force)
Forces
|
abstract void |
addForce(org.apache.commons.math3.geometry.euclidean.threed.Vector3D force,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D position) |
abstract void |
addTorque(org.apache.commons.math3.geometry.euclidean.threed.Vector3D torque) |
double |
angularDrag()
Alias for
getAngularDrag(). |
org.apache.commons.math3.geometry.euclidean.threed.Rotation |
angularVelocity()
Alias for
getAngularVelocity(). |
double |
drag()
Alias for
getDrag(). |
abstract double |
getAngularDrag()
Rotation Methods
|
abstract org.apache.commons.math3.geometry.euclidean.threed.Rotation |
getAngularVelocity() |
abstract double |
getDrag() |
abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getGravity()
Gravity is an acceleration.
|
abstract double |
getMass()
Mass in kilograms.
|
abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getVelocity()
Velocity is how fast the body is moving
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
gravity()
Alias for
getGravity(). |
double |
mass()
Alias for
getMass(). |
abstract void |
setAngularDrag(double angularDrag) |
abstract void |
setAngularVelocity(org.apache.commons.math3.geometry.euclidean.threed.Rotation angularVelocity) |
abstract void |
setDrag(double drag) |
abstract void |
setGravity(org.apache.commons.math3.geometry.euclidean.threed.Vector3D gravity) |
abstract void |
setMass(double mass) |
abstract void |
setVelocity(org.apache.commons.math3.geometry.euclidean.threed.Vector3D velocity) |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
velocity()
Alias for
getVelocity(). |
getID, getProvider, onProviderChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsameTypepublic abstract double getMass()
public abstract void setMass(double mass)
public abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D getVelocity()
public abstract void setVelocity(org.apache.commons.math3.geometry.euclidean.threed.Vector3D velocity)
public abstract double getDrag()
public abstract void setDrag(double drag)
public abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D getGravity()
public abstract void setGravity(org.apache.commons.math3.geometry.euclidean.threed.Vector3D gravity)
public abstract double getAngularDrag()
public abstract void setAngularDrag(double angularDrag)
public abstract org.apache.commons.math3.geometry.euclidean.threed.Rotation getAngularVelocity()
public abstract void setAngularVelocity(org.apache.commons.math3.geometry.euclidean.threed.Rotation angularVelocity)
public abstract void addForce(org.apache.commons.math3.geometry.euclidean.threed.Vector3D force)
force - The force to apply.public abstract void addForce(org.apache.commons.math3.geometry.euclidean.threed.Vector3D force,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D position)
public abstract void addTorque(org.apache.commons.math3.geometry.euclidean.threed.Vector3D torque)
public final double mass()
getMass().getMass()public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D velocity()
getVelocity().getVelocity()public final double drag()
getDrag().getDrag()public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D gravity()
getGravity().getGravity()public final double angularDrag()
getAngularDrag().getAngularDrag()public final org.apache.commons.math3.geometry.euclidean.threed.Rotation angularVelocity()
getAngularVelocity().getAngularVelocity()