I would like to implement a script command to add objects of different shapes during the simulation, and also to set whether these objects are affected by gravity or not.
Cheers
How to generate objects using scripts?
Re: How to generate objects using scripts?
Hello,
have a look at following functions for example:
have a look at following functions for example:
- sim.createPrimitiveShape
- sim.createMeshShape
- sim.loadModel
- sim.setObjectInt32Param(shapeHandle, sim.shapeintparam_respondable, respondable)
- sim.setObjectInt32Param(shapeHandle, sim.shapeintparam_static, static)
- sim.setShapeMass
- sim.setShapeInertia
- etc.