# WeaponTrace record struct

> What a Trace hit.

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

```csharp
public readonly record struct WeaponTrace
```

What a [Trace](/docs/api/iweaponholder#trace) hit.

## Members

### WeaponTrace (constructor)

```csharp
public WeaponTrace(double Fraction, MapVector End, MapVector Normal)
```

The fraction of the line travelled, where it ended and the surface's normal there.

### Fraction (property)

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

How far along the line it got, from 0 to 1, 1 when it hit nothing.

### End (property)

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

Where it stopped.

### Normal (property)

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

The surface's normal where it hit, zero when it hit nothing.

### Body (property)

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

The physics body it hit, or `null` for the world or nothing.

### Person (property)

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

Whether it hit a person's body, which isn't a physics body.

### Group (property)

```csharp
public int Group { get; init; }
```

The hit group of the hitbox it hit on a person, as the person's model numbers them, or 0.

### Surface (property)

```csharp
public ContentId? Surface { get; init; }
```

The surface record it hit, when the world or the model names one.

### Material (property)

```csharp
public ContentId? Material { get; init; }
```

The material it hit, so a Plugin can tell the sky from a wall.

### Impact (property)

```csharp
public ContentId? Impact { get; init; }
```

The struck surface's `bullet` effect, from its `surface` record's `effects`, or a person's body's surface's, or `null` when it names none. A weapon plays its own impact first and this one when it has none, as the engine does for bullets.

### Hit (property)

```csharp
public bool Hit { get; }
```

Whether it hit anything before the line's end.
