UNPKG

hytopia

Version:

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

54 lines (26 loc) 684 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Simulation](./server.simulation.md) &gt; [setGravity](./server.simulation.setgravity.md) ## Simulation.setGravity() method Sets the gravity vector for the simulation. **Signature:** ```typescript setGravity(gravity: RAPIER.Vector3): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> gravity </td><td> RAPIER.Vector3 </td><td> The gravity vector. </td></tr> </tbody></table> **Returns:** void