UNPKG

hytopia

Version:

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

56 lines (27 loc) 738 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Vector3](./server.vector3.md) &gt; [randomize](./server.vector3.randomize.md) ## Vector3.randomize() method Randomizes the vector. **Signature:** ```typescript randomize(scale?: number): Vector3; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> scale </td><td> number </td><td> _(Optional)_ Length of the resulting vector, if omitted a unit vector is set. </td></tr> </tbody></table> **Returns:** [Vector3](./server.vector3.md) The current vector.