hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
76 lines (36 loc) • 1.17 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Simulation](./server.simulation.md) > [getContactManifolds](./server.simulation.getcontactmanifolds.md)
## Simulation.getContactManifolds() method
Gets the contact manifolds for a pair of colliders.
**Signature:**
```typescript
getContactManifolds(colliderHandleA: RAPIER.ColliderHandle, colliderHandleB: RAPIER.ColliderHandle): ContactManifold[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
colliderHandleA
</td><td>
RAPIER.ColliderHandle
</td><td>
The handle of the first collider.
</td></tr>
<tr><td>
colliderHandleB
</td><td>
RAPIER.ColliderHandle
</td><td>
The handle of the second collider.
</td></tr>
</tbody></table>
**Returns:**
[ContactManifold](./server.contactmanifold.md)<!-- -->\[\]
The contact manifolds, or an empty array if no contact.
## Remarks
Contact manifolds will not be returned for contacts that involve sensors.