Regular API function

simGetObjectSizeValues / sim.getObjectSizeValues

Description Retrieves the x, y and z size values of a scene object. The size values are different from the real object sizes. Use this to be able to react to scaling operations. See also sim.setObjectSizeValues and sim.getObjectSizeFactor.
C synopsis simInt simGetObjectSizeValues(simInt objectHandle,simFloat* sizeValues)
C parameters
objectHandle: handle of the scene object
sizeValues (output): a pointer to 3 size values (x, y and z)
C return value
-1 in case of an error
Lua synopsis table_3 sizeValues=sim.getObjectSizeValues(number objectHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page