Studio::EventInstance::set3DAttributes

FMOD Studio API

Firelight Technologies FMOD Studio API

Studio::EventInstance::set3DAttributes

Sets the 3D position, velocity and orientation for the event instance.

C++ Syntax

FMOD_RESULT Studio::EventInstance::set3DAttributes(
  FMOD_3D_ATTRIBUTES *attributes
);

C Syntax

FMOD_RESULT FMOD_Studio_EventInstance_Set3DAttributes(
  FMOD_STUDIO_EVENTINSTANCE *eventinstance,
  FMOD_3D_ATTRIBUTES *attributes
);

C# Syntax

RESULT Studio.EventInstance.set3DAttributes(
  _3D_ATTRIBUTES attributes
);

JavaScript Syntax

EventInstance.set3DAttributes(
  attributes                       
);

Parameters

attributes
The 3D attributes to set.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

Remarks

This function is used to position the event inside the 3D game world. This will update the 3D panner and any automatic Distance or Angle parameters.

See Also




Version 1.10.03 Built on Feb 1, 2018