# Sandbox.Surface.PlaceSplatter

```csharp
GameObject PlaceSplatter(Vector3 position, Vector3 direction, GameObject hitObject = null)
```

Draw this surface's [Sandbox.Surface.Splatter](/api/Sandbox.Surface/Splatter), traced from `position` along provided
`direction`, ignoring `hitObject`, and put a decal where it lands, if there's any traceable surface within given distance.
Total splatter count depends on the max amount of decals limit.

### Parameters

- `position` (`Vector3`): Where the hit landed.
- `direction` (`Vector3`): The direction the hit was travelling.
- `hitObject` (`GameObject`), default `null`: What was hit, which the trace passes through. Its whole model for a ragdoll.

### Returns

`GameObject`: The decal's GameObject, or null if none was placed.

Declared in [Sandbox.Surface](/api/Sandbox.Surface).
Assembly: `Sandbox.Engine`.
