Function ears::listener::set_position [] [src]

pub fn set_position(position: [f32; 3])

Set the listener location in three dimensional space.

OpenAL, like OpenGL, uses a right handed coordinate system, where in a frontal default view X (thumb) points right, Y points up (index finger), and Z points towards the viewer/camera (middle finger). To switch from a left handed coordinate system, flip the sign on the Z coordinate.

Default is [0., 0., 0.].

Argument

Example

listener::set_position([45., 90., 35.]);