Download

Rotation Wobble

Hi.

How to properly build up rotator without giving massive wobble effect (gimbal lock?).

WobbleBlueprint.jpg

If u combine two rotator components with make rotator it causes this effect when moving closer to the follower.

Result.jpg

Your wobble gimbal comes from the fact that you are making a rotator by the two broken components of two other rotators. Those are normally incompatible with others and only work as a set.
Instead of doing that you should have the merge happen on a vector level.
Have a look at these two nodes… I think you will have a much more stable solution by using either of these to assemble your final rotator.

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Math/Rotator/RotatorfromAxisandAngle/index.html

With my poor skills in math, i gave it a try with Make Rotation from Axes node.

AnotherTry.jpg

There is still the wobble. So i quess have to try axis and angle. RInterp To also works in all solutions unless u put Interp Speed too high.

To create a proper rotator you need the other two axes as well, generally its built out of a tangent (forward vector), a normal (up vector), and a biNormal (right vector). Have a look at some generic vector and matrix math docs to get a basic grasp on it…

But, from what I can see you are trying to have your actor aim at an other actor? Like a target lock? I implemented a very simple one a few weeks ago, maybe this helps:

https://dl.dropboxusercontent.com/u/25584030/ue4simpleTargetLock.PNG

Yes, that is the goal to have a stationary object to follow a moving target. I will try to look and study this more as u adviced.

Today i decided to debug a little bit, so i stripped down everything except this, which is the same what is in previous posts, and there is no wobble.

499e374e17a4ff783e3c76d4f0f8ad10944a8b38.jpeg

So here is what i got debugged so far today. The problem clearly is this.

2df86e65940a9d2588ddb321c0e29f1ba89619ba.jpeg

No matter how u build up ur rotation, the wobble will come out.

e46ebe96bcc3268be1ebd5208a96aa9440e44a3d.jpeg
279581a979108c072cdbae0b33543b3403123dde.jpeg

This is the structure of objects.

c5733148a1f180b0d85753e9404e679189701918.jpeg

So here is what i got squeezed out from my little brain today.

The wobble comes out if the setting is like this.

4cd8a462fe4c5103123b4d1dccc79efecc89dfa1.jpeg

If we eliminate the forward vector, which is useless anyways, the wobble is gone for now.

41f0f4614feb434053c08cc5d0a8a0f6178362f8.jpeg

Only conclusion is that if we use Find Look at Rotation too far away from pivot point, the rotation gets excited and starts to wobble.

2c3f4c0c8a4a3790ff0f2a9a3911af87c4aace50.jpeg