This is a basic space item in space. Every SpaceItem has an start position and velocity. Under conditions of zero gravity, velocity never changes. Acceleration should be applied by manually changing velocity.
SpaceItem is also an abstract class. It contains some basic implementations but most of the behavior should be specified in the child classes.
Space is the class that deals with SpaceItems. You should also see this class to understand how the interface provided by this class is utilized.
There are also some helpfull funcions to calculate distances to other SpaceItems. See getDistanceTo*(...) methods for further details.
@author malar @version 1.0
|
|
|
|
|
|