HoverSim Design
From Hovercraft
(Difference between revisions)
Revision as of 14:30, 26 September 2006
Contents |
Introduction
This design refers to the core classes of the HoverSim API.
CraftComponent
- CraftComponent parent
- CraftComponent[] children
- Vector2 position
- float orientation
- Vector2 velocity
- Vector2 absPosition
- float absOrientation
- Vector2 absVelocity
- recalcAbsoluteProperties() # recalculate absolute properties using the parent as a reference
HoverCraft(CraftComponent)
- Vector2 thrust
- float weight
- float plenumArea
- float perimeter
Sensor(CraftComponent)
- read()
=LightSensor(Sensor)
- read()
Fan(CraftComponent)
- thrust()