90 float radius,
float height);
void setPosition(const kVec3 &pos)
Moves the obstacle to a new world-space position.
bool isValid() const
Returns true if the obstacle is registered in the tile cache.
kVec3 getPosition() const
Returns the obstacle's current world-space centre position.
unsigned int getObstacleRef() const
Returns the underlying Detour obstacle reference.
void uninit()
Removes the obstacle from the tile cache and marks it invalid.
~kNavObstacle()
Destroys the obstacle, removing it from the tile cache if still valid.
bool init(void *tileCache, const kVec3 &position, float radius, float height)
Registers the obstacle as a cylinder in the given tile cache.
kNavObstacle()
Constructs an empty, uninitialised obstacle (no tile-cache binding).
float getRadius() const
Returns the obstacle cylinder's radius.
float getHeight() const
Returns the obstacle cylinder's height.
Core type aliases, enumerations, structs, and utility functions used throughout the engine.
Symbol visibility / linkage macro for the Kemena3D library.
#define KEMENA3D_API
Definition kexport.h:35
Top-level Kemena3D engine namespace.
Definition kanimation.h:23
glm::vec3 kVec3
3-component float vector.
Definition kdatatype.h:33