#include <movetotarget.h>
Static functions to compute new position, rotation that are closer to a target while respecting a maxMove.
Static Public Member Functions | |
static KyFloat32 | Scalar (KyFloat32 target, KyFloat32 maxMove, KyFloat32 input) |
static Vec2f | Dir2d (const Vec2f &target, KyFloat32 maxAngleInRadian, const Vec2f &input) |
|
static |
pre-condition: maxAngleInRadian < PI/2
|
static |