> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxraycasthit.md).

# Struct pxRaycastHit

Namespace: [KS.Reactor.Server.PhysX](/reactor/api-reference/ks.reactor.server.physx.md)\
Assembly: KSReactor.dll

```csharp
public struct pxRaycastHit
```

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Properties

### Actor <a href="#ks_reactor_server_physx_pxraycasthit_actor" id="ks_reactor_server_physx_pxraycasthit_actor"></a>

```csharp
public pxActor Actor { get; }
```

#### Property Value

[pxActor](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxactor.md)

### Barycenter <a href="#ks_reactor_server_physx_pxraycasthit_barycenter" id="ks_reactor_server_physx_pxraycasthit_barycenter"></a>

```csharp
public ksVector2 Barycenter { get; }
```

#### Property Value

ksVector2

### Distance <a href="#ks_reactor_server_physx_pxraycasthit_distance" id="ks_reactor_server_physx_pxraycasthit_distance"></a>

```csharp
public float Distance { get; }
```

#### Property Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### FaceIndex <a href="#ks_reactor_server_physx_pxraycasthit_faceindex" id="ks_reactor_server_physx_pxraycasthit_faceindex"></a>

```csharp
public uint FaceIndex { get; }
```

#### Property Value

[uint](https://learn.microsoft.com/dotnet/api/system.uint32)

### HitFlags <a href="#ks_reactor_server_physx_pxraycasthit_hitflags" id="ks_reactor_server_physx_pxraycasthit_hitflags"></a>

```csharp
public pxHitFlags HitFlags { get; }
```

#### Property Value

[pxHitFlags](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxhitflags.md)

### Normal <a href="#ks_reactor_server_physx_pxraycasthit_normal" id="ks_reactor_server_physx_pxraycasthit_normal"></a>

```csharp
public ksVector3 Normal { get; }
```

#### Property Value

ksVector3

### Position <a href="#ks_reactor_server_physx_pxraycasthit_position" id="ks_reactor_server_physx_pxraycasthit_position"></a>

```csharp
public ksVector3 Position { get; }
```

#### Property Value

ksVector3

### Shape <a href="#ks_reactor_server_physx_pxraycasthit_shape" id="ks_reactor_server_physx_pxraycasthit_shape"></a>

```csharp
public pxShape Shape { get; }
```

#### Property Value

[pxShape](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxshape.md)

## Methods

### ToString() <a href="#ks_reactor_server_physx_pxraycasthit_tostring" id="ks_reactor_server_physx_pxraycasthit_tostring"></a>

Returns the fully qualified type name of this instance.

```csharp
public override string ToString()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The fully qualified type name.
