Yesterday, 07:09 AM
(Yesterday, 07:01 AM)twocomet Wrote: Hello,
I would like to either bake the shape of an Obi Rod or stop its simulation, and then shrink or extend its length.
Is there a way to achieve this through code?
Hi,
It’s not possible, rods cannot have their rest length changed at runtime. See:
https://obi.virtualmethodstudio.com/manu...setup.html
Only option that comes to mind is baking the mesh generated by ObiRopeExtrudedRenderer, and then scaling the mesh. This doesn’t really “increase its length”, but rather just scale it which won’t give the same results unless the rod is completely straight and aligned with a local axis.
kind regards,