hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
78 lines (37 loc) • 1.2 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.
\*\*Category:\*\* Physics
## Remarks
Returns an empty array for sensor contacts (sensors do not generate manifolds).