Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Ropes be Frozen at Runtime
#6
(19-01-2022, 10:49 AM)Romahaaa Wrote: What about the case when I still need to track the particles positions while moving disabled ObiRope component and moving it with the attachments? Is there a way just to disable the obi rope simulation without disabling the component? I tried to toggle off all the constraints in the Solver but it didn't work

When disabling the rope, all its particles and constraints are taken out of the solver. So if you disable the component, there's no longer any particles in there for you to track. However, the mesh used for rendering will still be there and can be transformed as usual which might be enough for your purpose, so it depends on what you need to do.

Another option is to just set all particle's inverse mass to zero. This makes the particle have infinite mass, freezing it in place. This is usually used to manually override particle positions, and is what static attachments do (set the inverse mass to zero, then set the particle position). Note you won't save any performance by doing this, frozen particles are kept in memory and considered during constraint evaluation.

http://obi.virtualmethodstudio.com/manua...icles.html

Quote:Inverse mass: Inverse mass for each particle. An inverse mass of 0 means the particle's mass is infinite, so its position will be unaffected by dynamics (allowing you to override it manually).
Reply


Messages In This Thread
Can Ropes be Frozen at Runtime - by RichardM73 - 16-10-2020, 09:29 AM
RE: Can Ropes be Frozen at Runtime - by Romahaaa - 19-01-2022, 10:49 AM
RE: Can Ropes be Frozen at Runtime - by josemendez - 19-01-2022, 11:01 AM