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

# Class pxShape

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

```csharp
public class pxShape : 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) ← [pxShape](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxshape.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.SetUnmanagedPtr(IntPtr, UnmanagedPtr.ReleaseCallback)](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.unmanagedptr.md#KS_Reactor_Server_PhysX_UnmanagedPtr_SetUnmanagedPtr_System_IntPtr_KS_Reactor_Server_PhysX_UnmanagedPtr_ReleaseCallback_), [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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [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

### pxShape(pxGeometry, ksVector3, ksQuaternion, pxMaterial, bool) <a href="#ks_reactor_server_physx_pxshape__ctor_ks_reactor_server_physx_pxgeometry_ks_reactor_ksvector3_ks_rea" id="ks_reactor_server_physx_pxshape__ctor_ks_reactor_server_physx_pxgeometry_ks_reactor_ksvector3_ks_rea"></a>

```csharp
public pxShape(pxGeometry geometry, ksVector3 position, ksQuaternion rotation, pxMaterial material = null, bool isShared = false)
```

#### Parameters

`geometry` [pxGeometry](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxgeometry.md)

`position` ksVector3

`rotation` ksQuaternion

`material` [pxMaterial](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxmaterial.md)

`isShared` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

## Fields

### DefaultContactOffset <a href="#ks_reactor_server_physx_pxshape_defaultcontactoffset" id="ks_reactor_server_physx_pxshape_defaultcontactoffset"></a>

```csharp
public static float DefaultContactOffset
```

#### Field Value

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

## Properties

### ContactOffset <a href="#ks_reactor_server_physx_pxshape_contactoffset" id="ks_reactor_server_physx_pxshape_contactoffset"></a>

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

#### Property Value

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

### Flags <a href="#ks_reactor_server_physx_pxshape_flags" id="ks_reactor_server_physx_pxshape_flags"></a>

```csharp
public pxShapeFlags Flags { get; set; }
```

#### Property Value

[pxShapeFlags](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxshapeflags.md)

### Geometry <a href="#ks_reactor_server_physx_pxshape_geometry" id="ks_reactor_server_physx_pxshape_geometry"></a>

```csharp
public pxGeometry Geometry { get; set; }
```

#### Property Value

[pxGeometry](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxgeometry.md)

### IsShared <a href="#ks_reactor_server_physx_pxshape_isshared" id="ks_reactor_server_physx_pxshape_isshared"></a>

```csharp
public bool IsShared { get; }
```

#### Property Value

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

### Material <a href="#ks_reactor_server_physx_pxshape_material" id="ks_reactor_server_physx_pxshape_material"></a>

```csharp
public pxMaterial Material { get; set; }
```

#### Property Value

[pxMaterial](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxmaterial.md)

### MinTorsionalPatchRadius <a href="#ks_reactor_server_physx_pxshape_mintorsionalpatchradius" id="ks_reactor_server_physx_pxshape_mintorsionalpatchradius"></a>

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

#### Property Value

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

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

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

#### Property Value

ksVector3

### QueryFilter <a href="#ks_reactor_server_physx_pxshape_queryfilter" id="ks_reactor_server_physx_pxshape_queryfilter"></a>

```csharp
public pxFilter QueryFilter { get; set; }
```

#### Property Value

[pxFilter](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxfilter.md)

### RestOffset <a href="#ks_reactor_server_physx_pxshape_restoffset" id="ks_reactor_server_physx_pxshape_restoffset"></a>

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

#### Property Value

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

### Rotation <a href="#ks_reactor_server_physx_pxshape_rotation" id="ks_reactor_server_physx_pxshape_rotation"></a>

```csharp
public ksQuaternion Rotation { get; set; }
```

#### Property Value

ksQuaternion

### SimulationFilter <a href="#ks_reactor_server_physx_pxshape_simulationfilter" id="ks_reactor_server_physx_pxshape_simulationfilter"></a>

```csharp
public pxFilter SimulationFilter { get; set; }
```

#### Property Value

[pxFilter](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxfilter.md)

### TorsionalPatchRadius <a href="#ks_reactor_server_physx_pxshape_torsionalpatchradius" id="ks_reactor_server_physx_pxshape_torsionalpatchradius"></a>

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

#### Property Value

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

## Methods

### GetPose(out ksVector3, out ksQuaternion) <a href="#ks_reactor_server_physx_pxshape_getpose_ks_reactor_ksvector3__ks_reactor_ksquaternion" id="ks_reactor_server_physx_pxshape_getpose_ks_reactor_ksvector3__ks_reactor_ksquaternion"></a>

```csharp
public void GetPose(out ksVector3 position, out ksQuaternion rotation)
```

#### Parameters

`position` ksVector3

`rotation` ksQuaternion

### SetFlag(pxShapeFlags, bool) <a href="#ks_reactor_server_physx_pxshape_setflag_ks_reactor_server_physx_pxshapeflags_system_boolean" id="ks_reactor_server_physx_pxshape_setflag_ks_reactor_server_physx_pxshapeflags_system_boolean"></a>

```csharp
public void SetFlag(pxShapeFlags flag, bool value)
```

#### Parameters

`flag` [pxShapeFlags](/reactor/api-reference/ks.reactor.server.physx/ks.reactor.server.physx.pxshapeflags.md)

`value` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### SetPose(ksVector3, ksQuaternion) <a href="#ks_reactor_server_physx_pxshape_setpose_ks_reactor_ksvector3_ks_reactor_ksquaternion" id="ks_reactor_server_physx_pxshape_setpose_ks_reactor_ksvector3_ks_reactor_ksquaternion"></a>

```csharp
public void SetPose(ksVector3 position, ksQuaternion rotation)
```

#### Parameters

`position` ksVector3

`rotation` ksQuaternion
