Antkeeper
0.0.1
|
Functions | |
math::fvec3 | flee (const agent &agent, const math::fvec3 &target) |
Attempts to steer an agent so that it moves away from a target. More... | |
math::fvec3 | seek (const agent &agent, const math::fvec3 &target) |
Attempts to steer an agent so that it moves toward a target. More... | |
math::fvec3 | wander_2d (const agent &agent, float noise, float distance, float radius, float &angle) |
Steers an agent in a continuously shifting random direction on the yaw plane. More... | |
math::fvec3 | wander_3d (const agent &agent, float noise, float distance, float radius, float &theta, float &phi) |
Steers an agent in a continuously shifting random direction. More... | |
math::fvec3 ai::steering::behavior::flee | ( | const agent & | agent, |
const math::fvec3 & | target | ||
) |
math::fvec3 ai::steering::behavior::seek | ( | const agent & | agent, |
const math::fvec3 & | target | ||
) |
math::fvec3 ai::steering::behavior::wander_2d | ( | const agent & | agent, |
float | noise, | ||
float | distance, | ||
float | radius, | ||
float & | angle | ||
) |
Steers an agent in a continuously shifting random direction on the yaw plane.
agent | Autonomous agent to steer. | |
distance | Distance to the center of the wander circle. | |
noise | Maximum wander angle shift, in radians. | |
radius | Radius of the wander circle. | |
[in,out] | angle | Angular coordinate on the wander circle, in radians. |
Definition at line 29 of file wander.cpp.
math::fvec3 ai::steering::behavior::wander_3d | ( | const agent & | agent, |
float | noise, | ||
float | distance, | ||
float | radius, | ||
float & | theta, | ||
float & | phi | ||
) |
Steers an agent in a continuously shifting random direction.
agent | Autonomous agent to steer. | |
distance | Distance to the wander sphere. | |
radius | Radius of the wander sphere. | |
delta | Maximum angle offset. | |
[in,out] | theta | Polar wander angle, in radians. |
[in,out] | phi | Azimuthal wander angle, in radians. |
Definition at line 47 of file wander.cpp.