Page 1 of 1

set the mechanical properties

Posted: 29 Jan 2024, 07:31
by ChenCh
I want to design a cuboid located in the middle of two cylinders, by being squeezed by the two cylinders to make the cuboid bend into a circular shape, how do I set the mechanical properties of the cylinder and the cuboid? I am using version 4.6.0.

Re: set the mechanical properties

Posted: 29 Jan 2024, 15:27
by fferri
Currently, only the MuJoCo engine can perform simulation of deformable bodies.

See the example scene in scenes/mujoco/stringsRopesClothsAndSoftBodies.ttt.

Re: set the mechanical properties

Posted: 05 Feb 2024, 15:32
by ChenCh
I have seen the example, but I still don't know how to set the force, I want to set a cylinder to exert a certain amount of force on other objects, what tool should be used to set it

Re: set the mechanical properties

Posted: 06 Feb 2024, 10:57
by fferri
Apply the force to the cylinder object (sim.addForce / sim.addForceAndTorque) or mount the cylinder onto a joint and apply force to the joint (sim.setJointTargetForce with the joint set in force/torque control mode, or design your own force controller which could be as simple as apply a constant force).