|
|||||||||
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.MobileObject2D
sim.robot2D.Robot
public class Robot
Field Summary |
---|
Fields inherited from class sim.physics2D.physicalObject.MobileObject2D |
---|
coefficientOfFriction, coefficientOfStaticFriction, mass, massMomentOfInertia |
Fields inherited from class sim.physics2D.physicalObject.PhysicalObject2D |
---|
coefficientOfRestitution, index, physicsState, shape |
Constructor Summary | |
---|---|
Robot()
|
Method Summary | |
---|---|
protected void |
backup()
|
protected void |
faceTowards(Angle globalAngle)
|
protected Angle |
getAngle(Double2D vector)
Gives the angle of the vector (i.e. |
protected Double2D |
globalFromLocal(Double2D localCoordinate)
|
protected void |
goTo(Double2D globalDestination)
|
protected Double2D |
localFromGlobal(Double2D globalCoordinate)
|
protected void |
moveForward(double speed)
|
protected void |
stop()
|
Methods inherited from class sim.physics2D.physicalObject.MobileObject2D |
---|
addForce, addFrictionForce, addTorque, getAngularVelocity, getCoefficientOfFriction, getCoefficientOfStaticFriction, getForceAccumulator, getMass, getMassInverse, getMassMomentOfInertiaInverse, getTorqueAccumulator, getVelocity, resetLastPose, restorePose, setAngularVelocity, setCoefficientOfFriction, setCoefficientOfStaticFriction, setMass, setShape, setVelocity, updatePose |
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 Robot()
Method Detail |
---|
protected Double2D localFromGlobal(Double2D globalCoordinate)
protected Double2D globalFromLocal(Double2D localCoordinate)
protected Angle getAngle(Double2D vector)
protected void faceTowards(Angle globalAngle)
protected void moveForward(double speed)
protected void goTo(Double2D globalDestination)
protected void stop()
protected void backup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |