Listener

Listener sets the position, velocity and orientation of the sound set. Default is <code>vec3f(0, 0, 0)</code> for position and velocity and <code>vec6f(0, 0, -1, 0, 1, 0)</code> for orientation.

Members

Static functions

getOrientation
Vector3f[2] getOrientation()

Returns the current orientation. Default s (0, 0, -1, 0, 1, 0)

getPosition
Vector3f getPosition()

Returns the current position. Default is (0, 0, 0)

getVelocity
Vector3f getVelocity()

Returns the current velocity. Default is (0, 0, 0)

setOrientation
void setOrientation(Vector3f at, Vector3f up)

Set the orientation. Default is (0, 0, -1) and (0, 1, 0)

setOrientation
void setOrientation(float[6] ori)

Set the orientation. Default is (0, 0, -1, 0, 1, 0)

setOrientation
void setOrientation(float u, float v, float w, float x, float y, float z)

Set the orientation. Default is (0, 0, -1, 0, 1, 0)

setPosition
void setPosition(float[3] pos)

Set the position. Default is (0, 0, 0)

setPosition
void setPosition(Vector3f pos)

Set the position. Default is (0, 0, 0)

setPosition
void setPosition(float x, float y, float z)

Set the position with x, y and z coordinates. Default is (0, 0, 0)

setVelocity
void setVelocity(float[3] vel)

Set the velocity. Default is (0, 0, 0)

setVelocity
void setVelocity(Vector3f vel)

Set the velocity. Default is (0, 0, 0)

setVelocity
void setVelocity(float x, float y, float z)

Set the velocity with x, y and z coordinates. Default is (0, 0, 0)

Meta

Authors

rschuett