self:set_doppler_tracking

Client

Sets the doppler tracking mode of the audio-3d instance


Syntax

local status = self:set_doppler_tracking(
    mode
)

Parameters

TypeNameDescription
core.audio_3d.doppler_trackingmodeDoppler tracking mode to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable idle-step Doppler tracking
local entity = core.audio_3d.create("sounds/vehicle.ogg")

entity:set_doppler_tracking(core.audio_3d.doppler_tracking.IDLE_STEP)
entity:play()

On this page