Rotating actor suddenly changes direction when it hits 90 degress

Hello

I have a wheel spinning forever in my scene, using add local rotation. I’m seeing that after it hits 90 deg on that axis the rotation suddenly changes directions to another axis.

I can’t see why this is happening. I’ve not other code touching this as far as I see.

This also happens when I use a rotating movement component.

If you’re using the rotation component, then you don’t need to use ‘add local rotation’.

If you’re using ‘add local rotation’ then you also shouldn’t get this effect.

I’m guessing you have a timeline or tick somewhere in the mix?

I wasn’t using the add location rotation and rotation component at the same time I just noticed they both had the same effect. I am using tick with the add location rotation and using delta seconds*rotation rate to feed into one axis of a make rotator for add local rotation. When I changed the rate from 2 to 25 I noticed the weird flip axis thing wouldn’t happen anymore. Strange.

Ok, just split the node and add the extra rotation to one axis on tick, that should work :slight_smile:

( don’t use ‘make rotator’ )

It seems to be working now thanks! I’m still keeping my eye on it though I using large objects and large spaces so that might be confusing it.