Community Tutorial: Follow a Spline and Report Distance Along It Using an Actor Component

Another question came in through my DMs.

Is there any option to increase the speed of the car. I tried to change the data type of the variable speed to integer but nothing seems changed & I tried max speed Cm/s also but the speed remains same.

The “cm/s” speed controls will only work on the static mesh or a basic actor in my example. That is for a situation in which we precisely control the translation every frame.

The “speed” variable is an overall multiplier I added so that once you set the maximum you can adjust it more finely as you wish. In the case of the car, its movement is controlled entirely through physics as part of the ChaosVehicleComponent. My Speed multiplier is only adjusting the Throttle input. If you want to make this car go faster you will need to modify its engine settings in its Blueprint, and you can also adjust settings in the wheels like friction. This can get pretty complicated and when I was making the example I definitely had some cases where the car would go too fast and overshoot the spline on tight corners. It’s all physics based!

1 Like