UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

54 lines (26 loc) 829 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Collider](./server.collider.md) &gt; [(constructor)](./server.collider._constructor_.md) ## Collider.(constructor) Creates a collider with the provided options. Use for: configuring a collider before adding it to a simulation or rigid body. **Signature:** ```typescript constructor(colliderOptions: ColliderOptions); ``` ## 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 collider instance. \*\*Category:\*\* Physics </td></tr> </tbody></table>