Geometry::setPosition

FMOD Studio API

Firelight Technologies FMOD Studio API

Geometry::setPosition

Sets the position of the object in world space, which is the same space FMOD sounds and listeners reside in.

C++ Syntax

FMOD_RESULT Geometry::setPosition(
  const FMOD_VECTOR *position
);

C Syntax

FMOD_RESULT FMOD_Geometry_SetPosition(
  FMOD_GEOMETRY *geometry,
  const FMOD_VECTOR *position
);

C# Syntax

RESULT Geometry.setPosition(
  ref VECTOR position
);

JavaScript Syntax

Geometry.setPosition(
  position                         
);

Parameters

position
Pointer to a vector containing the 3D position of the object.

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.

See Also




Version 1.10.03 Built on Feb 1, 2018