org.vizzini.game.simulation
Interface IPhysicalObject
- All Superinterfaces:
- Cloneable, IForceConsumer, IForceProducer, IStateful, IToken, Serializable
- All Known Implementing Classes:
- AbstractPhysicalObject, DefaultPhysicalObject
public interface IPhysicalObject
- extends IForceConsumer, IForceProducer, IStateful, IToken
Defines methods required by a physical object.
- Since:
- v0.3
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
Methods inherited from interface org.vizzini.game.IToken |
addPropertyChangeListener, clone, configure, getAgent, getIndex, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue |
getBounds
Ellipsoid getBounds()
- Return the bounds ellipsoid.
- Since:
- v0.3
getMass
double getMass()
- Return the mass in kg.
- Specified by:
getMass
in interface IForceConsumer
- Since:
- v0.3
isLightSource
boolean isLightSource()
- Returns:
- Return isLightSource.
- Since:
- v0.3
setLightSource
void setLightSource(boolean isLightSource)
- Parameters:
isLightSource
- the isLightSource to set- Since:
- v0.3
setMass
void setMass(double mass)
- Set the mass of this object.
- Since:
- v0.3
setMomentOfInertia
void setMomentOfInertia(double[] momentOfInertia)
- Set the moment of inertia of this object.
- Since:
- v0.3
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |