Vehicle speed adjustment

Hi there,

I have create a vehicle that I need its speed to be managed by an external source (I am developing an arduino-UE project, so the speed will be determined by a potentiometer). I have managed to pass the “speed” from potentiometer to UE but when i add it to the Set physics linear velocity it is always advanced the speed in the X axis but i need to adjust the forward speed even if the vehicle change its rotation.

Should i have to use a rotator vector or get forward vector and how?

I have figure it out for anyone who might need it.
Just add the Get actor forward vector and multiple the output with desired value.

2 Likes