# WeaponBeam record

> A beam a weapon shows, drawn by the engine as a glowing ribbon in the holder's weapon colour from the view model's muzzle in first person, or the holder's right hand otherwise. It eases after its end, bows toward the aim while it lags and fades in and out on its own.

Namespace `EvilEngine.Api.Weapons`, assembly `EvilEngine.Api`. Engine commit 4ff877b1.

```csharp
public sealed record WeaponBeam
```

A beam a weapon shows, drawn by the engine as a glowing ribbon in the holder's weapon colour from the view model's muzzle in first person, or the holder's right hand otherwise. It eases after its end, bows toward the aim while it lags and fades in and out on its own.

## Members

### WeaponBeam (constructor)

```csharp
public WeaponBeam(MapVector Point)
```

A beam on a point: [Point](#point) in the world, or in [Body](#body)'s own space when it has one.

### Point (property)

```csharp
public MapVector Point { get; init; }
```

The end: a world point, or a point in the body's space so the beam follows the body as it moves and turns.

### Body (property)

```csharp
public IPhysicsBody? Body { get; init; }
```

The physics body the beam is on, or `null` for a world point. A body that isn't one of the session's props ends the beam where the body is at the tick.

### At (method)

```csharp
public static WeaponBeam At(MapVector point)
```

A beam on a point in the world.

### On (method)

```csharp
public static WeaponBeam On(IPhysicsBody body, MapVector local)
```

A beam on a point in a body's own space.
