HoverSim Design

From Hovercraft

(Difference between revisions)
(CraftComponent)
(HoverCraft(CraftComponent))
Line 18: Line 18:
* Vector2 thrust
* Vector2 thrust
* float weight
* float weight
-
* float plenumArea
+
* float radius
-
* float perimeter
+
=Sensor(CraftComponent)=
=Sensor(CraftComponent)=

Revision as of 14:33, 26 September 2006

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()
Personal tools