Table of Contents

Sound.setListenerPosition

Available since version: in development

Description:

Sets the position of the listener in a 3D environment

Syntax:

Sound.setListenerPosition(x, y [, z, vx, vy, vz, dx, dy, dz, ux, uy, uz])

Parameters:

  • x: (number) X coordinate of the listener
  • y: (number) Y coordinate of the listener
  • z: (number) z coordinate of the listener
  • vx: (number) X component of listener's velocity
  • vy: (number) Y component of listener's velocity
  • vz: (number) Z component of listener's velocity
  • dx: (number) X component of the direction the listener is facing
  • dy: (number) Y component of the direction the listener is facing
  • dz: (number) Z component of the direction the listener is facing
  • ux: (number) X component of up direction relative to the listener
  • uy: (number) Y component of up direction relative to the listener
  • uz: (number) Z component of up direction relative to the listener