HoverSim Design
From Hovercraft
Revision as of 14:33, 26 September 2006 by 129.2.56.239 (Talk)
Contents |
Introduction
This design refers to the core classes of the HoverSim API.
CraftComponent
- CraftComponent parent
- 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 radius
Sensor(CraftComponent)
- read()
=LightSensor(Sensor)
- read()
Fan(CraftComponent)
- thrust()