How to enable dynamic properties during simulation

Typically: "How do I... ", "How can I... " questions
Post Reply
Aadhithya K
Posts: 9
Joined: 05 Apr 2021, 16:26

How to enable dynamic properties during simulation

Post by Aadhithya K »

Hello again

I would like to enable the dynamic properties of the model programmatically during a simulation.
The model is a CAD model and not a primary shape (if there would be any difference for it)
The model is initially static and after executing another function in the Lua script I would like to set the model to be dynamic.
Is there any way to do this with the Lua script?
I would like to set only the base of the model tree to be dynamic.

Thanks in advance

coppelia
Site Admin
Posts: 10361
Joined: 14 Dec 2012, 00:25

Re: How to enable dynamic properties during simulation

Post by coppelia »

Hello,

yes, you can use some of following API functions for that. But make sure that simulation is not running when doing this, or reset the shape via sim.resetDynamicObject after such a change.
Cheers

Post Reply