Yesterday, 11:14 AM
Thank you very much! This is a lot of useful informations!
I would like to kind of bend the rod, or change shape and make it permament (for runtime duration). That would be similar to deformation related stuff and because it's possible via forces, I thought it could be possible to change during runtime. Also another case is that I might want to turn rod into bendable tool, for example imagine tool used to explore pipes with camera on the tip, it might be possible to steer that cable, bend left/right to change direction, so in reality it changes it's default shape, however it still bends properly from that rest shape.
Is there way to access rod default shape?
Yeah, that is the reason why it would be nice if there was simple functionality to "attach" some job/jobs to chain, some method or event where job can be added and then that job would be for sure completed in obi OnSimulationEnd event. That would ensure that whatever runs it's executed in the same pipeline with Obi.
I am aware I can most likely hack the whole thing, but it's better to not touch the source code, so it would be nice thing to have.
In any case thank you for help, I will check and try things you mentioned
(Yesterday, 08:31 AM)josemendez Wrote: Yes, by taking it out of the solver, modifying its blueprint and then bringing it back in. But this of course means re-loading the rod. What's your use case for this?
I would like to kind of bend the rod, or change shape and make it permament (for runtime duration). That would be similar to deformation related stuff and because it's possible via forces, I thought it could be possible to change during runtime. Also another case is that I might want to turn rod into bendable tool, for example imagine tool used to explore pipes with camera on the tip, it might be possible to steer that cable, bend left/right to change direction, so in reality it changes it's default shape, however it still bends properly from that rest shape.
Is there way to access rod default shape?
(Yesterday, 08:31 AM)josemendez Wrote: This is not something that's exposed, but you could modify ObiSolver's source code to give yourself access to the simulation job handle. Note that the lifetime of the job is rather complex and varies depending on the synchronization method used (see "Bolting Obi onto Unity's timestepping": https://obi.virtualmethodstudio.com/manu...eloop.html). It's very easy to break things if you're not intimately familiar with how and when physics should be updated.
Yeah, that is the reason why it would be nice if there was simple functionality to "attach" some job/jobs to chain, some method or event where job can be added and then that job would be for sure completed in obi OnSimulationEnd event. That would ensure that whatever runs it's executed in the same pipeline with Obi.
I am aware I can most likely hack the whole thing, but it's better to not touch the source code, so it would be nice thing to have.
In any case thank you for help, I will check and try things you mentioned
