Moves forward in the direction the character is currently facing into. More...
#include <Wander.h>
Public Member Functions | |
| Wander (const std::string ¶meter) | |
| MoveVector | execute (const AIPtr &ai, float speed) const override |
Calculates the MoveVector. More... | |
Public Member Functions inherited from ai::_MemObject< AllocatorClass > | |
| void * | operator new (size_t size) |
| void * | operator new (size_t, void *ptr) |
| void * | operator new[] (size_t size) |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, void *) |
| void | operator delete[] (void *ptr) |
Protected Attributes | |
| const float | _rotation |
Moves forward in the direction the character is currently facing into.
Changes orientation (resp. rotation) in a range of [-rotation,rotation] where more weight is given to keep the current orientation.
|
inlineoverridevirtual |
Calculates the MoveVector.
MoveVector contains glm::vec3::VEC3_INFINITE as vector, the result should not be used because there was an error. Implements ai::movement::ISteering.
1.8.6