Function ears::listener::get_position [] [src]

pub fn get_position() -> [f32; 3]

Get the location of the listener in three dimensional space.

Return

A three dimensional vector of f32 containing the position of the listener [x, y, z].

Example

let pos = listener::get_position();
println!("Listener position: {:?}", &pos);