# Sandbox.Npcs.Layers.MovementLayer

Moves the NPC: [Sandbox.Npcs.Layers.NavigationLayer](/api/Sandbox.Npcs.Layers.NavigationLayer) walks the navmesh, other movers fly, swim or roll.
Tasks and schedules command it through `M:Sandbox.Npcs.Layers.MovementLayer.MoveTo(Vector3,System.Single,System.Nullable{System.Single},Sandbox.GameObject)`, [Sandbox.Npcs.Layers.MovementLayer.Stop](/api/Sandbox.Npcs.Layers.MovementLayer/Stop) and [Sandbox.Npcs.Layers.MovementLayer.Status](/api/Sandbox.Npcs.Layers.MovementLayer/Status).

- Kind: class
- Namespace: `Sandbox.Npcs.Layers`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Npcs.Layers.BaseNpcLayer](/api/Sandbox.Npcs.Layers.BaseNpcLayer)
- Modifiers: abstract

## Properties

- [`IsMoving`](/api/Sandbox.Npcs.Layers.MovementLayer/IsMoving): True while the NPC is actually travelling. Standing NPCs are free to turn their body toward whatever they're looking at.
- [`MoveTarget`](/api/Sandbox.Npcs.Layers.MovementLayer/MoveTarget): Where the current move is going, or null when no move was asked for.
- [`RunSpeed`](/api/Sandbox.Npcs.Layers.MovementLayer/RunSpeed): Speed used to run when the destination is far away -- HL-style: walk when close, run when there's ground to cover. Acts as a floor, so a higher [Sandbox.Npcs.Layers.MovementLayer.WalkSpeed](/api/Sandbox.Npcs.Layers.MovementLayer/WalkSpeed) is never slowed down.
- [`Status`](/api/Sandbox.Npcs.Layers.MovementLayer/Status): Where the mover is with the move it was asked for. Unlike [Sandbox.Npcs.Layers.MovementLayer.IsMoving](/api/Sandbox.Npcs.Layers.MovementLayer/IsMoving) it is about the request, not about whether the body is in motion this moment.
- [`StopDistance`](/api/Sandbox.Npcs.Layers.MovementLayer/StopDistance): How close the current move has to get to [Sandbox.Npcs.Layers.MovementLayer.MoveTarget](/api/Sandbox.Npcs.Layers.MovementLayer/MoveTarget) to count as arrived.
- [`TurnSpeed`](/api/Sandbox.Npcs.Layers.MovementLayer/TurnSpeed): How quickly the body turns to face the movement direction.
- [`WalkSpeed`](/api/Sandbox.Npcs.Layers.MovementLayer/WalkSpeed): The NPC's normal walking speed.

## Methods

- [`MoveTo`](/api/Sandbox.Npcs.Layers.MovementLayer/MoveTo)
- [`ProjectPoint`](/api/Sandbox.Npcs.Layers.MovementLayer/ProjectPoint): Project `point` onto this mover's movement space, such as the nearest spot on the navmesh. Null when no suitable point is found. This does not check whether a route to it exists.
- [`Stop`](/api/Sandbox.Npcs.Layers.MovementLayer/Stop): Stop moving and forget the current move target.
