Adding Object Issue
Posted: 13 Jun 2024, 23:59
Hello,
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:
Didn't I do anything wrong here? and how to fix this issue? Thank you
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})