Hello CoppeliaSim comunity,
I have a "path" object in my scene and a "dummy" that has to follow it.
I would like to make the dummy follow the path starting with a smooth acceleration, reaching a target constant speed and make it decelerate next to the end in order to stop it smoothly.
My question is .. which is best way to achive this behavior?
Thank you in advance for answering,
Mattia.
Smooth Path Following
Re: Smooth Path Following
Hello Mattia,
have a look at the demo scene scenes/trajectoryAndMotion/pathToTrajectory.ttt. The idea is to see your path as a one-dimensional task, which is to follow it from its start, until you arrived at its length L. Then you can use sim.moveToConfig
Make sure you also have a look at the other path related functions.
Cheers
have a look at the demo scene scenes/trajectoryAndMotion/pathToTrajectory.ttt. The idea is to see your path as a one-dimensional task, which is to follow it from its start, until you arrived at its length L. Then you can use sim.moveToConfig
Make sure you also have a look at the other path related functions.
Cheers
Re: Smooth Path Following
Hello Admin,
Thanks for the tip! 😊
I've used the "constant speed with velocity ramps" and it worked exactly as I wanted to! 😀
Thanks for the tip! 😊
I've used the "constant speed with velocity ramps" and it worked exactly as I wanted to! 😀