> 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.pxheightfieldsample.md).

# Struct pxHeightFieldSample

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

```csharp
public struct pxHeightFieldSample
```

#### 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)

## Constructors

### pxHeightFieldSample(short, byte, byte) <a href="#ks_reactor_server_physx_pxheightfieldsample__ctor_system_int16_system_byte_system_byte" id="ks_reactor_server_physx_pxheightfieldsample__ctor_system_int16_system_byte_system_byte"></a>

```csharp
public pxHeightFieldSample(short height, byte mat1Index = 0, byte mat2Index = 0)
```

#### Parameters

`height` [short](https://learn.microsoft.com/dotnet/api/system.int16)

`mat1Index` [byte](https://learn.microsoft.com/dotnet/api/system.byte)

`mat2Index` [byte](https://learn.microsoft.com/dotnet/api/system.byte)

## Fields

### Height <a href="#ks_reactor_server_physx_pxheightfieldsample_height" id="ks_reactor_server_physx_pxheightfieldsample_height"></a>

```csharp
public short Height
```

#### Field Value

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

### Mat1Index <a href="#ks_reactor_server_physx_pxheightfieldsample_mat1index" id="ks_reactor_server_physx_pxheightfieldsample_mat1index"></a>

```csharp
public byte Mat1Index
```

#### Field Value

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

### Mat2Index <a href="#ks_reactor_server_physx_pxheightfieldsample_mat2index" id="ks_reactor_server_physx_pxheightfieldsample_mat2index"></a>

```csharp
public byte Mat2Index
```

#### Field Value

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

## Operators

### implicit operator pxHeightFieldSample(short) <a href="#ks_reactor_server_physx_pxheightfieldsample_op_implicit_system_int16__ks_reactor_server_physx_pxheig" id="ks_reactor_server_physx_pxheightfieldsample_op_implicit_system_int16__ks_reactor_server_physx_pxheig"></a>

```csharp
public static implicit operator pxHeightFieldSample(short height)
```

#### Parameters

`height` [short](https://learn.microsoft.com/dotnet/api/system.int16)

#### Returns

[pxHeightFieldSample](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxheightfieldsample.md)
