unreal.NavMovementInterface

class unreal.NavMovementInterface(outer: Object | None = None, name: Name | str = 'None')

Bases: Interface

Nav Movement Interface

C++ Source:

  • Module: Engine

  • File: NavMovementInterface.h

get_max_speed_for_nav_movement() float

Get maximum movement speed of the agent

Return type:

float

get_velocity_for_nav_movement() Vector

Get the current velocity of the agent for nav movement

Return type:

Vector

is_crouching() bool

Returns true if currently crouching

Return type:

bool

is_falling() bool

Returns true if currently falling (not flying, in a non-fluid volume, and not on the ground)

Return type:

bool

is_flying() bool

Returns true if currently flying (moving through a non-fluid volume without resting on the ground)

Return type:

bool

is_moving_on_ground() bool

Returns true if currently moving on the ground (e.g. walking or driving)

Return type:

bool

is_swimming() bool

Returns true if currently swimming (moving through a fluid volume)

Return type:

bool

request_direct_move(move_velocity, force_max_speed) None

path following: request movement through a velocity directly

Parameters:
request_path_move(move_input) None

path following: request movement through a new move input (normal vector = full strength)

Parameters:

move_input (Vector)

stop_active_movement() None

Stops applying further movement (usually zeros acceleration).

stop_movement_keep_pathing() None

Stops movement immediately (reset velocity) but keeps following current path