# SPhysicsHit

**Members** 7

|          |                             |                                                           |
| -------- | --------------------------- | --------------------------------------------------------- |
| Property | [Object](#object)           | –                                                         |
| Property | [Position](#position)       | Where the physics hit occurred                            |
| Property | [Normal](#normal)           | The normal of the hit                                     |
| Property | [UV](#uv)                   | The UV coordinates of where the hit occurred on a mesh.   |
| Property | [UV2](#uv2)                 | The UV2 coordinates of where the hit occurred on a mesh.  |
| Property | [Distance](#distance)       | How far down a ray or from the collider, the hit occurred |
| Property | [ContainsHit](#containshit) | Whether it was a hit or not                               |

## Properties

### Object

[SGameObject ](/docs/scripting/client-scripting-api-reference/types/sgameobject.md)Object {get; }

Example

**Lua**

```lua
this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitGameObject = hit.Object

```

**Lua**

```lua
example 2

```

### Position

[SVector](/docs/scripting/client-scripting-api-reference/types/svector.md) Position {get; }

Where the physics hit occurred

Example

**Lua**

```lua
this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitPosition = hit.Position

```

### Normal

[SVector](/docs/scripting/client-scripting-api-reference/types/svector.md) Normal {get; }

The normal of the hit

Example

**Lua**

```lua
this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitNormal = hit.Normal

```

### UV

SVector UV {get; }

The UV coordinates of where the hit occurred on a mesh.

danger

This property will currently always return \[0,0] due to a current bug.

Example

**Lua**

```lua
this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitUV = hit.UV

```

### UV2

SVector UV2 {get; }

The UV2 coordinates of where the hit occurred on a mesh.

danger

This property will currently always return \[0,0] due to a current bug.

Example

**Lua**

```lua
this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitUV2 = hit.UV2

```

### Distance

float Distance {get; }

How far down a ray or from the collider, the hit occurred

Example

**Lua**

```lua
this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitDistance = hit.Distance

```

### ContainsHit

bool ContainsHit {get; }

Whether it was a hit or not

Example

**Lua**

```lua
this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitContainsHit = hit.ContainsHit

```
