odin_room_update_position
Updates the three-dimensional position of the current peer within the specified OdinRoomHandle odin_room_set_position_scale1.0
. This feature is particularly beneficial in scenarios involving a large number of peers
within the same room, enabling peers to interact or 'see' each other only when in close proximity. To modify the
distance sensitivity for position updates, use
Use this before calling odin_room_join
Parameters
room
Handle of the room where the position will be updated. See OdinRoomHandle
x, y, z
Coordinates representing the new position of the local peer in 3D space.
Use odin_room_set_position_scale odin_room_set_position_scale1.0
.
I.e. if your Unity game is on an island which is 1000 units wide in each direction, you can set the scaling factor to
0.001
to adapt the
coordinates to the unit circle with a radius of 1.0
. This way, you can just set the coordinates in Unity units and the
SDK will
adapt them to the unit circle with a radius of 1.0
.
Returns
A return code indicating success or failure.