Arcade Vehicle Steering

Hello,
my Code in Blueprint doesn’t seem to work properly. I am recreating this:

For the steering force i copied the code. Heres a side by side:


I am pretty new to blueprints so i dont know what the problem is here. When i plug the right vector in directly, then it shows the right vector correctly. Shouldn’t it just multiply the right vector by the desiredAccel ?

Here is what my arrow looks like:

Thanks!

youve added the right vector to the world location, so effectively your modifying a location not a direction

Ok so i did essentially the same thing just in a actor component and then added the actor component to my kart. Then it worked:


Credit:

(52:10 - 55.45)

Yea that is something that i didn’t understand. When i just use the right vector on it’s own then it goes to nowhere. I had to do it this way to get it to point to the right.
Here’s the intuitive way, you pointed out:


That’s the result:

yeah for your debug arrow you do need to add it back to the world location on end,
but a force is just a direction/magnitude so it doesnt

Ok i did not know that, thx

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.