Get Pawn Current Acceleration

I Have added movement to a pawn using set physics linear velocity. The pawn is simulating physics. I would like to get certain values like current velocity, acceleration (and jerk would be a bonus) for AI aim prediction. Current velocity is easy to get using get velocity node. I could do it in BP by constantly storing/updating vector values, but it could get messy. Could I expose the value for current acceleration to the editor in C++? I know the Charactermovment component has a get current acceleration function. MAybe its as easy as copying a few lines from that into the pawn movement component. What is the most efficient way to get current acceleration?

haha Clearly I don’t know what I’m doing :slight_smile: Any help or tips would be much appreciated.