Visualize forward vector of rotating sphere

Hello,

I’m trying to visualize the forward vector/ motion-vector of an rotating object.

This object is a sphere (ball with physics) driven by user mouse input. That’s working all well.

To visualize the motion-vector or forward vector I’m storing the sphere world location in two variables, along different positions along the exec path so I should get a delta between them and to draw a visual line.

But: As you can see in my example screenshot, the variables (vector) are always the same, even when they should show different values, as the second var is executed later along the exec path.

I also tried to use the forward vector, but in this case it’s rotating along with the sphere and I need it on the x,y plane/ground.

So I’m confused and would appreciate any help.

Btw: I’m new to blueprint scripting.


(In this case I did some addition for debugging)

Big thanks in advance and Regards!

This sounds very much like velocity and is already available for a simulating mesh:

And if you want a direction vector only (fixed magnitude):

1 Like

Thank you so much!!!
That’s so genius, simple and works perfect :slight_smile: !!!