Obi Official Forum

Full Version: Smoothly relax to initial particles positions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to smoothly make a transition from modified rope to it's initiial positions (like in the blueprint may fit as well).

I tried to to it moving the attached to the rope element (Rigidbody.Move) but it cause some glitches - sharp angles appeared on the ropeĀ for a second and after diasappear.
(15-02-2022, 01:14 PM)Romahaaa Wrote: [ -> ]Is there a way to smoothly make a transition from modified rope to it's initiial positions (like in the blueprint may fit as well).

I tried to to it moving the attached to the rope element (Rigidbody.Move) but it cause some glitches - sharp angles appeared on the ropeĀ for a second and after diasappear.

This depends on what you need to do exactly. If the transition must happen while the simulation is running, you can tweak particle velocities to add a force towards this rest shape. If this is a purely kinematic transition, you can just linearly interpolate between the current positions and the rest positions. Both can be done using the particles API:

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