Code: Select all
box = sim.getObjectHandle("Cuboid")
boxDummy = sim.getObjectHandle("BoxDummy")
Code: Select all
insertedObjects = sim.copyPasteObjects({box,boxDummy},0)
Code: Select all
box = sim.getObjectHandle("Cuboid")
boxDummy = sim.getObjectHandle("BoxDummy")
Code: Select all
insertedObjects = sim.copyPasteObjects({box,boxDummy},0)
Code: Select all
copy=sim.copyPasteObjects({cuboid},0)[1]
-- make it visible:
sim.setObjectInt32Param(copy,sim.objintparam_visibility_layer,255)
-- make it collidable, measurable and detectable:
sim.setObjectSpecialProperty(copy,sim.objectspecialproperty_collidable|sim.objectspecialproperty_measurable|sim.objectspecialproperty_detectable_all)
-- make it respondable and dynamic:
sim.setObjectInt32Param(copy,sim.shapeintparam_respondable,1)
sim.setObjectInt32Param(copy,sim.shapeintparam_static,0)
Code: Select all
copy=sim.copyPasteObjects({cuboid},1)[1]
sim.setModelProperty(copy,0)