# ProjectileTrail record struct

> A trail drawn behind a projectile as it flies, from red, green and blue from 0 to 1, its width in meters and how many seconds it lasts.

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

```csharp
public readonly record struct ProjectileTrail
```

A trail drawn behind a projectile as it flies, from red, green and blue from 0 to 1, its width in meters and how many seconds it lasts.

## Members

### ProjectileTrail (constructor)

```csharp
public ProjectileTrail(double Red, double Green, double Blue, double Width, double Life)
```

Its colour, width and life.

### Red (property)

```csharp
public double Red { get; init; }
```

How red, from 0 to 1.

### Green (property)

```csharp
public double Green { get; init; }
```

How green, from 0 to 1.

### Blue (property)

```csharp
public double Blue { get; init; }
```

How blue, from 0 to 1.

### Width (property)

```csharp
public double Width { get; init; }
```

How wide it starts, in meters.

### Life (property)

```csharp
public double Life { get; init; }
```

How many seconds each piece of it lasts before it fades.

### Smoke (property)

```csharp
public bool Smoke { get; init; }
```

Whether it's soft smoke that widens as it fades instead of a glowing streak.
