Geometry::setScale

FMOD Studio API

Firelight Technologies FMOD Studio API

Geometry::setScale

Sets the relative scale vector of the geometry object. An object can be scaled/warped in all 3 dimensions separately using the vector without having to modify polygon data.

C++ Syntax

FMOD_RESULT Geometry::setScale(
  const FMOD_VECTOR *scale
);

C Syntax

FMOD_RESULT FMOD_Geometry_SetScale(
  FMOD_GEOMETRY *geometry,
  const FMOD_VECTOR *scale
);

C# Syntax

RESULT Geometry.setScale(
  ref VECTOR scale
);

JavaScript Syntax

Geometry.setScale(
  scale                            
);

Parameters

scale
The scale vector of the object. Default = 1.0, 1.0, 1.0.

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