|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimplePortrayal2D
sim.physics2D.physicalObject.PhysicalObject2D
sim.physics2D.physicalObject.StationaryObject2D
public abstract class StationaryObject2D
StationaryObject2D represents a physical object that can't move. Stationary objects have infinite mass.
Field Summary |
---|
Fields inherited from class sim.physics2D.physicalObject.PhysicalObject2D |
---|
coefficientOfRestitution, index, shape |
Constructor Summary | |
---|---|
StationaryObject2D()
|
Method Summary | |
---|---|
double |
getAngularVelocity()
How fast the object is rotating in radians per second. |
double |
getMassInverse()
1 / mass. |
double |
getMassMomentOfInertiaInverse()
1 / mass moment of inertia. |
Double2D |
getVelocity()
Returns the velocity of the object. |
void |
resetLastPose()
|
void |
restorePose()
|
void |
setShape(Shape shape)
Set the shape of the object which determines how it is displayed and when it is colliding with another object |
void |
updatePose(double percent)
|
Methods inherited from class sim.physics2D.physicalObject.PhysicalObject2D |
---|
draw, getCoefficientOfRestitution, getIndex, getOrientation, getPosition, getShape, handleCollision, setCoefficientOfRestitution, setIndex, setPose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StationaryObject2D()
Method Detail |
---|
public void setShape(Shape shape)
public Double2D getVelocity()
getVelocity
in class PhysicalObject2D
public double getAngularVelocity()
getAngularVelocity
in class PhysicalObject2D
public double getMassInverse()
getMassInverse
in class PhysicalObject2D
public double getMassMomentOfInertiaInverse()
getMassMomentOfInertiaInverse
in class PhysicalObject2D
public void resetLastPose()
resetLastPose
in class PhysicalObject2D
public void updatePose(double percent)
updatePose
in class PhysicalObject2D
public void restorePose()
restorePose
in class PhysicalObject2D
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |