SoundChannel:setWorldPosition: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 2: Line 2:
'''Available since:''' in development<br/>
'''Available since:''' in development<br/>
=== Description ===
=== Description ===
Sets the position of this sound in a 3D world
<translate>Sets the position of this sound in a 3D world</translate>
<source lang="lua">
<source lang="lua">
  SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)
  SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)
</source>
</source>
=== Parameters ===
=== Parameters ===
'''x''': (number) X coordinate of this sound <br/>
'''x''': (number) <translate>X coordinate of this sound</translate> <br/>
'''y''': (number) Y coordinate of this sound <br/>
'''y''': (number) <translate>Y coordinate of this sound</translate> <br/>
'''z''': (number) Z coordinate of this sound '''optional'''<br/>
'''z''': (number) <translate>Z coordinate of this sound</translate> '''optional'''<br/>
'''vx''': (number) X component of this sound's velocity '''optional'''<br/>
'''vx''': (number) <translate>X component of this sound's velocity</translate> '''optional'''<br/>
'''vy''': (number) Y component of this sound's velocity '''optional'''<br/>
'''vy''': (number) <translate>Y component of this sound's velocity</translate> '''optional'''<br/>
'''vz''': (number) Z component of this sound's velocity '''optional'''<br/>
'''vz''': (number) <translate>Z component of this sound's velocity</translate> '''optional'''<br/>

Revision as of 12:32, 23 August 2018

Available since: in development

Description

Sets the position of this sound in a 3D world

 SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)

Parameters

x: (number) X coordinate of this sound
y: (number) Y coordinate of this sound
z: (number) Z coordinate of this sound optional
vx: (number) X component of this sound's velocity optional
vy: (number) Y component of this sound's velocity optional
vz: (number) Z component of this sound's velocity optional