- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to animate a nozzle type object which is moved by a dummy that rotates in an arc around the origin point. The limit needs to be X rotation +/- 45 degrees and Z rotation +/-45 degrees.
The nozzle pivot point is fixed at the origin. I am struggling to get this rigged so it behaves correctly.
If the controlling dummy object is simply rotated in only the direct vertical (X rotation) or only in the direct horizontal direction (Z rotation) then everything works fine. The issue is when X and Z rotations are combined
With a simple LookAt constraint (target = controlling dummy object) the nozzle object twists with a Y direction rotation I have tried two other methods as outlined below but none of these work properly:
Test 1:
Normal Look At constraint.
Tracks target OK but object twisting on Y-axis – you can see the red part – this should stay exactly horizontal.
Test 2:
Using the Expose Transform helper object expose the X rotation and the Z rotation values of the LookAt dummy object
Using Parameter Wiring wire each value to the X and Z rotation of the object
Does not track target properly and is off in both the X and Z rotations.
Test 3:
Using “single axis LookAt method” in X axis with dummy object and again on Z axis with a separate dummy object. I used the method as described in this video:
I created two separate dummy objects with LookAt constraints each to only track one axis each – i.e. X rotation and Z rotation respectively.
Using the Expose Transform helper object expose the X rotation and the Z rotation value of each separate dummy object
Using Parameter Wiring wire the X rotation of one dummy and the Z rotation of the other dummy to the X and Z rotation of the object.
This method sees to track the target correctly in Z rotation but X is way off.
Now I am all out of fresh ideas….. maybe a LookAt constraint is the wrong way to go about this?
Here is a YouTube clip showing what I have so far
I would appreciate any help in solving this issue! Thanks in advance…..
Solved! Go to Solution.