What is meaning of Interpolated Configuration?

Typically: "How do I... ", "How can I... " questions
Post Reply
shreyas7738
Posts: 19
Joined: 30 Dec 2020, 15:32

What is meaning of Interpolated Configuration?

Post by shreyas7738 »

I am trying to build a vehicle to follow the dummied along the path.I am using the Motorbike example from the vehicles.What is the use of sim.getPathInterpolatedConfig in the script?

coppelia
Site Admin
Posts: 10504
Joined: 14 Dec 2012, 00:25

Re: What is meaning of Interpolated Configuration?

Post by coppelia »

Hello,

as an example, if you have a path described by 3 points, start, intermediate, and goal (not all aligned), then you can use the mentioned function to get a point somewhere in-between. The function allows to perform linear interpolation, but also bezier-curve interpolation.

Cheers

Post Reply