Our new developer documentation is now available. Please check it out!
OdinRoom.setPosition
On this page
setPosition(offsetX: number, offsetY: number, offsetZ: number): void
Updates the three-dimensional position of our own OdinPeer
in the room to apply server-side culling.
Parameters
Name | Type | Description |
---|---|---|
offsetX | number | The new X coordinate for the peers position in the room |
offsetY | number | The new Y coordinate for the peers position in the room |
offsetZ | number | The new Z coordinate for the peers position in the room |
Returns
Type | Description |
---|---|
void |