public class RMInertiaAction extends RMAction
Constructor and Description |
---|
RMInertiaAction()
Creates a new inertia action.
|
Modifier and Type | Method and Description |
---|---|
RMVector |
getAccelerationVector()
Returns the acceleration vector.
|
double |
getAngularVelocity()
Returns the angular velocity.
|
double |
getDrag()
Returns the drag coefficient (reduces velocity by this percent per second).
|
RMVector |
getShapeVector()
Returns the shape vector.
|
double |
getThrust()
Returns the thrust amount (as points per second in direction of shape roll).
|
RMVector |
getVelocityVector()
Returns the velocity vector in points per second.
|
void |
setAccelerationVector(RMVector aVector)
Sets the acceleration vector.
|
void |
setAngularVelocity(double aValue)
Sets the angular velocity.
|
void |
setDrag(double aValue)
Sets the drag coefficient (reduces velocity by this percent per second).
|
void |
setThrust(double anAmount)
Sets the thrust amount (as points per second in direction of shape roll).
|
void |
setTime(double aTime)
Updates shape based on velocity and acceleration.
|
void |
setVelocityVector(RMVector aVector)
Sets the velocity vector.
|
public RMVector getVelocityVector()
public void setVelocityVector(RMVector aVector)
public RMVector getAccelerationVector()
public void setAccelerationVector(RMVector aVector)
public double getThrust()
public void setThrust(double anAmount)
public double getDrag()
public void setDrag(double aValue)
public double getAngularVelocity()
public void setAngularVelocity(double aValue)
public RMVector getShapeVector()