# Sandbox.Npcs.Layers.FlyingLayer

Flies the NPC straight at its target and hovers above it, gaining and losing speed smoothly and sliding along
whatever its hull hits. There is no pathfinding: a move that gets nowhere for a moment fails.
Its body is kinematic and weightless until physics takes it (see `M:Sandbox.Npcs.Layers.MovementLayer.OnPhysicsControlStarted`).

- Kind: class
- Namespace: `Sandbox.Npcs.Layers`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Npcs.Layers.MovementLayer](/api/Sandbox.Npcs.Layers.MovementLayer)

## Constructors

- [`FlyingLayer`](/api/Sandbox.Npcs.Layers.FlyingLayer/.ctor)

## Properties

- [`Acceleration`](/api/Sandbox.Npcs.Layers.FlyingLayer/Acceleration): How quickly the flyer gains and loses speed, in units per second squared. It also turns a change of direction into a curve instead of a corner.
- [`Bounds`](/api/Sandbox.Npcs.Layers.FlyingLayer/Bounds): Whether it keeps to the air or to water volumes. It stops at the edge of what it may enter.
- [`HoverHeight`](/api/Sandbox.Npcs.Layers.FlyingLayer/HoverHeight): How far above a move target to fly.
- [`IsMoving`](/api/Sandbox.Npcs.Layers.FlyingLayer/IsMoving)
- [`Status`](/api/Sandbox.Npcs.Layers.FlyingLayer/Status)
- [`Velocity`](/api/Sandbox.Npcs.Layers.FlyingLayer/Velocity): How fast the flyer is going and which way, on the host. Set it to knock the flyer about, such as a bounce off something it hit: it then steers back to its move at [Sandbox.Npcs.Layers.FlyingLayer.Acceleration](/api/Sandbox.Npcs.Layers.FlyingLayer/Acceleration).

## Methods

- [`MoveTo`](/api/Sandbox.Npcs.Layers.FlyingLayer/MoveTo)
- [`Stop`](/api/Sandbox.Npcs.Layers.FlyingLayer/Stop)
