Functions

Nav.collide GETSET The collision enable flag
Nav:face(pos) Face a point in space
Nav.orient GETSET The orientation
Nav.pos GETSET The position
Nav.radius GETSET The radius
Nav.turn GETSET The angular velocity
Nav:turn_toward(p) Turn toward a point
Nav:update() Update position and orientation
Nav.vel GETSET The velocity
Nav.x GET The local x-axis
Nav.y GET The local y-axis
Nav.z GET The local z-axis

Functions

Nav.collide GETSET

The collision enable flag

Nav:face(pos)

Face a point in space

Parameters:

pos The point to face
Nav.orient GETSET

The orientation

Nav.pos GETSET

The position

Nav.radius GETSET

The radius

Nav.turn GETSET

The angular velocity

Nav:turn_toward(p)

Turn toward a point

Parameters:

p The point
Nav:update()

Updates position and orientation according to the current velocity and angular velocity. Also, any other Nav's within the collision radius will be detected and passed through the collision_cb callback if collide is enabled

Nav.vel GETSET

The velocity

Nav.x GET

The local x-axis

Nav.y GET

The local y-axis

Nav.z GET

The local z-axis