Orxonox  0.0.5 Codename: Arcturus
Namespaces | Functions
SpicedAsteroidBelt.cc File Reference

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

#include "SpicedAsteroidBelt.h"
#include "SpicedAsteroidField.h"
#include <algorithm>
#include "core/CoreIncludes.h"
#include "core/XMLPort.h"
#include "util/Math.h"

Namespaces

 orxonox
 Die Wagnis Klasse hat die folgenden Aufgaben:
 

Functions

 orxonox::RegisterClass (SpicedAsteroidBelt)
 

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.