|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgizmoball.gameworld.GameObject
gizmoball.gameworld.gameobjects.Ball
public abstract class Ball
This is the base interface for all balls in the game world. All balls are assumed to be spheres.
sphere
: PhysicsSphere // the sphere object that is this ballConstructor Summary | |
---|---|
Ball()
|
Method Summary | |
---|---|
abstract Vect3 |
getGravity()
Gets the gravity this ball is currently operating under. |
abstract PhysicsSphere |
getSphere()
Returns the sphere representing this ball. |
abstract void |
setFriction(double mu,
double mu2)
Sets the friction for this ball. |
abstract void |
setGravity(Vect3 g)
Sets the gravity for this ball to be the specified value. |
abstract void |
setPosition(Vect3 newPosition)
Sets the position of the ball to now be a new position. |
abstract void |
setVelocity(Vect3 newVelocity)
Sets the velocity of the ball to now be a new velocity. |
Methods inherited from class gizmoball.gameworld.GameObject |
---|
copy, getBoundingBox, getDefaultTriggers, getGraphicsProperties, getXMLString, toString, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Ball()
Method Detail |
---|
public abstract PhysicsSphere getSphere()
public abstract void setVelocity(Vect3 newVelocity)
public abstract void setPosition(Vect3 newPosition)
public abstract void setGravity(Vect3 g)
public abstract Vect3 getGravity()
public abstract void setFriction(double mu, double mu2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |