How to know if my character is rotating on itself in animation blueprint ?

Hello,

I have a robot with legs. I would like to know if there is anyway to know if my character is rotating alongside the Z axis (on itself). ?
I found the Get Last Update Rotation but from that I don’t know how to see if I’m rotating or not.

The goal is to have a specific animation when the robot turn on itself and the idle animation if he doesn’t move.

Any idea ?

Hey @Mr.Devos!

You can use the Get Last Update Rotation node, and then attach that to a printstring node! Then when you go into the game it should constantly tell you your robot’s full rotation at all times in the top left corner, constantly updating. The third number should tell you your robot’s Z axis rotation. (x,y,z)

I’m not sure what you mean by “rotating alongside the Z axis (on itself)”. With this answer, I am assuming you mean rotating on its own (local) Z axis and not (world) Z axis. :slight_smile:

1 Like

Hello,

Sorry if my question was not clear enough. I would prefer to have a Boolean that tells me if the robot is rotating or not. But anyway I found a solution using the capsule angular velocity. If it’s greater than 1 it means that it’s turning :slight_smile:

1 Like

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