Page 1 of 1

C API simScaleObjects appears to be incorrect

Posted: 22 Aug 2017, 01:05
by jacobhuesman
Hi,

I keep getting compilation errors when using the "simScaleObjects" function in the Regular API. According to the API http://www.coppeliarobotics.com/helpFiles/en/regularApi/simScaleObjects.htm simScaleObjects should require: const simInt* objectHandles,simInt objectCount,simFloat scalingFactor,simBool scalePositionsToo as parameters. However the compilation error I'm getting indicates that it is expecting a const simFloat* for the first argument.

Thanks,
Jacob

Re: C API simScaleObjects appears to be incorrect

Posted: 22 Aug 2017, 08:24
by coppelia
Hello Jacob,

you are right, there is a bug in file programming/include/v_repLib.h. You can simply replace the const simFloat* with const simInt* in that file.

Thanks again!