Developer Documentation

OdinRoom.setPosition

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

NameTypeDescription
offsetXnumberThe new X coordinate for the peers position in the room
offsetYnumberThe new Y coordinate for the peers position in the room
offsetZnumberThe new Z coordinate for the peers position in the room

Returns

TypeDescription
void