hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 1.05 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [RigidBody](./server.rigidbody.md) > [createAndAddChildCollidersToSimulation](./server.rigidbody.createandaddchildcolliderstosimulation.md)
## RigidBody.createAndAddChildCollidersToSimulation() method
Creates and adds multiple child colliders to the rigid body for the simulation it belongs to.
**Signature:**
```typescript
createAndAddChildCollidersToSimulation(colliderOptions: ColliderOptions[]): Collider[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
colliderOptions
</td><td>
[ColliderOptions](./server.collideroptions.md)<!-- -->\[\]
</td><td>
The options for the child colliders to add to the rigid body.
</td></tr>
</tbody></table>
**Returns:**
[Collider](./server.collider.md)<!-- -->\[\]
The child colliders that were added to the rigid body.