how to get current acceleration?

hello, i’m trying to get the current acceleration for the vehicle movement component, but didn’t find how to get it?

any help will be very useful.

Well, I don’t know if it’s implemented, but you can always get the acceleration if you save the velocity v1 in the tick-event to a variable and take the new velocity v2 and the delta time dt and calculate a = (v2-v1)/dt.

2 Likes

thank you @ThiloN1987

Thanks for the input. This is not acceleration though? If you are moving with no change in velocity, with this blueprint you get a positive value. With no change in velocity, acceleration should be zero.

It seems this is amount of velocity on tick, not acceleration? My math isn’t great, I probably just need to subtract a value?

Any help appreciated!

For acceleration you need to store last ticks velocity and compare.

Velocity -> Vector Length = Speed
Current Speed > LastTickSpeed = Accelerating, CurrentSpeed - LastTickSpeed = Gain
Current Speed < LastTickSpeed = Decelerating, LastTickSpeed - CurrentSpeed = Loss