UNPKG

hytopia

Version:

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

58 lines (28 loc) 950 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [EntityModelNodeOverride](./server.entitymodelnodeoverride.md) &gt; [setLocalPosition](./server.entitymodelnodeoverride.setlocalposition.md) ## EntityModelNodeOverride.setLocalPosition() method Sets the local position for matching nodes. **Signature:** ```typescript setLocalPosition(localPosition: Vector3Like | undefined): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> localPosition </td><td> [Vector3Like](./server.vector3like.md) \| undefined </td><td> The local position to set. \*\*Side effects:\*\* Emits `EntityModelNodeOverrideEvent.SET_LOCAL_POSITION` when spawned. \*\*Category:\*\* Entities </td></tr> </tbody></table> **Returns:** void