Orxonox  0.0.5 Codename: Arcturus
Classes | Namespaces
SpicedAsteroidBelt.h File Reference

Asteroid belt with lots of parameters. Derived from asteroidField.lua. More...

#include "AsteroidMiningPrereqs.h"
#include "core/BaseObject.h"
#include "tools/interfaces/Tickable.h"

Go to the source code of this file.

Classes

class  orxonox::SpicedAsteroidBelt
 

Namespaces

 orxonox
 Die Wagnis Klasse hat die folgenden Aufgaben:
 

Detailed Description

Asteroid belt with lots of parameters. Derived from asteroidField.lua.

Author
remartin Generates a ring of asteroids by calling SpicedAsteroidField multiple times. It's in the xy-plane at default, orientation can be changed with tiltAt (angle where it gets elevated/lowered the most) and TiltBy (angle at z-axis). This doesn't work very well and could probably implemented differently with relative coordinates (attach etc, stuff in WorldEntity).

It is required to wait until all XML-arguments are set. That's why the actual generation happens when tick() gets called for the first time.