01-18-2020, 09:40 PM
Hi,
I will start with your last question: no ECS plan for now. I am right now not convinced about the benefits of converting a big codebase such as Curvy to ECS, compared to its cost (time wise). But I might change my mind in the future.
About clamping an object to a spline, what you can do is to put a Spline Controller on an object A with a mesh, and set its speed to 0. Then have another object B with the rigidbody and no mesh. At each frame, set B to A's position, apply the forces on B, let the physics update, measure the distance B moved with, then update A's Spline Controller's position accordingly. Did you get the idea?
I will start with your last question: no ECS plan for now. I am right now not convinced about the benefits of converting a big codebase such as Curvy to ECS, compared to its cost (time wise). But I might change my mind in the future.
About clamping an object to a spline, what you can do is to put a Spline Controller on an object A with a mesh, and set its speed to 0. Then have another object B with the rigidbody and no mesh. At each frame, set B to A's position, apply the forces on B, let the physics update, measure the distance B moved with, then update A's Spline Controller's position accordingly. Did you get the idea?
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance workâfeel free to reach out.
Available for freelance workâfeel free to reach out.