04-29-2022, 03:05 PM
Hi
So you have two constraints: the object needs to be on the path, and needs to interact physically with other objects. As I see it, there are two ways to verify both constraints:
I hope this helped
Have a nice day
So you have two constraints: the object needs to be on the path, and needs to interact physically with other objects. As I see it, there are two ways to verify both constraints:
- Applying lightly both constraints all the time: this is what is done in example scene 11_Rigidbody, where the object is not moved along a path, but physically pushed around it. That way it interacts correctly with other objects, but will most of the time not be exactly on the path.
- Applying strictly only one constraint at a time: when the controlled object collides with a physical object, disable the controller and let only the physical response move the object. Then, after some condition is met (for example after reaching a certain point, or after a some time), reactivate the controller. The downside of this method is the handling of the transaction between both states, which might look unnatural.
I hope this helped
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.