UNPKG

hytopia

Version:

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

103 lines (47 loc) 1.49 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [VoxelsColliderOptions](./server.voxelscollideroptions.md) ## VoxelsColliderOptions interface The options for a voxels collider. Use for: voxel-based colliders (block volumes). Do NOT use for: simple primitives; prefer analytic shapes when possible. \*\*Category:\*\* Physics **Signature:** ```typescript export interface VoxelsColliderOptions extends BaseColliderOptions ``` **Extends:** [BaseColliderOptions](./server.basecollideroptions.md) ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [coordinates?](./server.voxelscollideroptions.coordinates.md) </td><td> </td><td> [Vector3Like](./server.vector3like.md)<!-- -->\[\] </td><td> _(Optional)_ The coordinate of each voxel in the collider. \*\*Category:\*\* Physics </td></tr> <tr><td> [shape](./server.voxelscollideroptions.shape.md) </td><td> </td><td> [ColliderShape.VOXELS](./server.collidershape.md) </td><td> </td></tr> <tr><td> [size?](./server.voxelscollideroptions.size.md) </td><td> </td><td> [Vector3Like](./server.vector3like.md) </td><td> _(Optional)_ The size of each voxel in the collider. \*\*Category:\*\* Physics </td></tr> </tbody></table>