Tells the player where the listener is, so sounds with a position can be panned and softened by distance.
- camera_position: where the listener is.
- camera_orientation: which way the listener faces.
update_listener(.{0, 1.7, 0}, .{0, 0, 0, 1});This one is only checked to compile, not run.
update_listener :: (camera_position: Vector3, camera_orientation: Quaternion)
Tells the player where the listener is, so sounds with a position can be panned and softened by distance.
Parameters
- camera_position: Vector3
- where the listener is.
- camera_orientation: Quaternion
- which way the listener faces.
update_listener(.{0, 1.7, 0}, .{0, 0, 0, 1});This one is only checked to compile, not run.