System::setGeometrySettings

FMOD Studio API

Firelight Technologies FMOD Studio API

System::setGeometrySettings

Sets the maximum world size for the geometry engine for performance / precision reasons.

C++ Syntax

FMOD_RESULT System::setGeometrySettings(
  float maxworldsize
);

C Syntax

FMOD_RESULT FMOD_System_SetGeometrySettings(
  FMOD_SYSTEM *system,
  float maxworldsize
);

C# Syntax

RESULT System.setGeometrySettings(
  float maxworldsize
);

JavaScript Syntax

System.setGeometrySettings(
  maxworldsize                     
);

Parameters

maxworldsize
Maximum size of the world from the centerpoint to the edge using the same units used in other 3D functions.

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

Setting maxworldsize should be done first before creating any geometry.
It can be done any time afterwards but may be slow in this case.

Objects or polygons outside the range of maxworldsize will not be handled efficiently.
Conversely, if maxworldsize is excessively large, the structure may loose precision and efficiency may drop.

See Also




Version 1.10.03 Built on Feb 1, 2018