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

# Class pxMaterial

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

```csharp
public sealed class pxMaterial : UnmanagedPtr
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [UnmanagedPtr](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.unmanagedptr.md) ← [pxMaterial](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxmaterial.md)

#### Inherited Members

[UnmanagedPtr.Find\<T>(IntPtr)](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.unmanagedptr.md#KS_Reactor_Server_PhysX_UnmanagedPtr_Find__1_System_IntPtr_), [UnmanagedPtr.Release()](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.unmanagedptr.md#KS_Reactor_Server_PhysX_UnmanagedPtr_Release), [UnmanagedPtr.UserData](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.unmanagedptr.md#KS_Reactor_Server_PhysX_UnmanagedPtr_UserData), [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

### pxMaterial(float, float, float, pxMaterialCombineMode, pxMaterialCombineMode) <a href="#ks_reactor_server_physx_pxmaterial__ctor_system_single_system_single_system_single_ks_reactor_server" id="ks_reactor_server_physx_pxmaterial__ctor_system_single_system_single_system_single_ks_reactor_server"></a>

```csharp
public pxMaterial(float staticFriction = 0.6, float dynamicFriction = 0.6, float restitution = 0, pxMaterialCombineMode frictionCombine = pxMaterialCombineMode.AVERAGE, pxMaterialCombineMode restitutionCombine = pxMaterialCombineMode.AVERAGE)
```

#### Parameters

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

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

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

`frictionCombine` [pxMaterialCombineMode](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxmaterialcombinemode.md)

`restitutionCombine` [pxMaterialCombineMode](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxmaterialcombinemode.md)

## Properties

### DynamicFriction <a href="#ks_reactor_server_physx_pxmaterial_dynamicfriction" id="ks_reactor_server_physx_pxmaterial_dynamicfriction"></a>

```csharp
public float DynamicFriction { get; set; }
```

#### Property Value

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

### FrictionCombineMode <a href="#ks_reactor_server_physx_pxmaterial_frictioncombinemode" id="ks_reactor_server_physx_pxmaterial_frictioncombinemode"></a>

```csharp
public pxMaterialCombineMode FrictionCombineMode { get; set; }
```

#### Property Value

[pxMaterialCombineMode](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxmaterialcombinemode.md)

### Restitution <a href="#ks_reactor_server_physx_pxmaterial_restitution" id="ks_reactor_server_physx_pxmaterial_restitution"></a>

```csharp
public float Restitution { get; set; }
```

#### Property Value

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

### RestitutionCombineMode <a href="#ks_reactor_server_physx_pxmaterial_restitutioncombinemode" id="ks_reactor_server_physx_pxmaterial_restitutioncombinemode"></a>

```csharp
public pxMaterialCombineMode RestitutionCombineMode { get; set; }
```

#### Property Value

[pxMaterialCombineMode](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxmaterialcombinemode.md)

### StaticFriction <a href="#ks_reactor_server_physx_pxmaterial_staticfriction" id="ks_reactor_server_physx_pxmaterial_staticfriction"></a>

```csharp
public float StaticFriction { get; set; }
```

#### Property Value

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

## Methods

### Release(IntPtr) <a href="#ks_reactor_server_physx_pxmaterial_release_system_intptr" id="ks_reactor_server_physx_pxmaterial_release_system_intptr"></a>

```csharp
public static extern void Release(IntPtr material)
```

#### Parameters

`material` [IntPtr](https://learn.microsoft.com/dotnet/api/system.intptr)
