I wanna add objects with U shape into coppeliasim with python and remoteApi. However, the gravity effects on objects seem wrong.
This is the short record of my issue: https://youtu.be/AWVNzEVxhYU (Full code of remoteApiCommandServer's childscript is under comment)
I've already defined the parameters of these objects in remoteApiCommandServer script:
Code: Select all
sim.setShapeColor(shapeHandle, nil, sim.colorcomponent_ambient_diffuse, inShapeShapeColor)
sim.setObjectInt32Param(shapeHandle, sim.shapeintparam_static, 0)
sim.setObjectInt32Param(shapeHandle, sim.shapeintparam_respondable, 1)
sim.setArrayParam(sim.arrayparam_gravity, {0,0,-9.8})