#include <flockanimatordefault.h>
Public Member Functions | |
FlockAnimatorDefault (irr::IrrlichtDevice *d) | |
~FlockAnimatorDefault () | |
Destructor. | |
void | animateNode (irr::scene::ISceneNode *node, irr::u32 timeMs) |
void | testSpeedUp (irr::scene::ISceneNode *node) |
That is default steering behavior of a Flock. Adds its part to each Boid velocity. This is an implementation of irr::ISceneNodeAnimator interface. Other FlockAnimators will look like this class. The key is a automated call to animateNode() each frame within Irrlicht engine.
Definition at line 15 of file flockanimatordefault.h.
|
Constructor.
|
|
Gets called from irr::SceneManager every frame. Gets a handle to a SceneNode and thus is able to set its position, rendering, etc.
|
|
Same as animateNode() but way faster. Removes three iterations though all Boid in seperate Functions to only one itaration.
|