https://forum.coppeliarobotics.com/view ... 037#p32037
It seems working fine, but still gives me an error message :
Lua runtime error: [string "CHILD SCRIPT Mike"]:7: Invalid argument. (sim.convexDecompose)
stack traceback:
[C]: in function 'convexDecompose'
[string "CHILD SCRIPT Mike"]:7: in function
Looks like it's something wrong with the parameters I gave to the sim.convexDecompose function? But I thought the parameters are exactly same as the post using...
https://imgur.com/LVGhCSg
Here's my code :
Code: Select all
function sysCall_init()
repeat until (simRemoteApi.start(19996,1300,false,true)~=-1)
mike1 = sim.getObjectHandle('Mike')
tIntParams = {0, 0, 0, 0, 0, 100000, 20, 4, 4, 64}
tFloatParams = {0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.05, 0.05, 0.001, 0.0001}
convex = sim.convexDecompose(mike1, 129, tIntParams, tFloatParams)
print(convex)
end
What's the problem?