Regular API function

simScaleObject / sim.scaleObject

Description Scales specified objects in a non-isometric fashion, if possible (i.e. some objects can be fully isometrically scaled, others have 2 or all 3 axes linked). See also sim.scaleObjects for isometric scaling.
C synopsis simInt simScaleObject(simInt objectHandle,simFloat xScale,simFloat yScale,simFloat zScale,simInt options)
C parameters
objectHandle: the handle of the object to scale.
xScale/yScale/zScale: the scaling factors along the object's x, y and z-axis.
options: reserved for future extension. Keep at 0.
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=sim.scaleObject(number objectHandle,number xScale,number yScale,number zScale,number options=0)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page