HoverSim Design

From Hovercraft

(Difference between revisions)
(CraftComponent)
Line 5: Line 5:
=CraftComponent=
=CraftComponent=
* CraftComponent parent
* CraftComponent parent
-
* CraftComponent[] children
 
* Vector2 position
* Vector2 position
* float orientation
* float orientation

Revision as of 14:30, 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 plenumArea
  • float perimeter

Sensor(CraftComponent)

  • read()

=LightSensor(Sensor)

  • read()

Fan(CraftComponent)

  • thrust()
Personal tools