Applying Look At constraint in a single axis only

   3732   2   0
User Avatar
Member
15 posts
Joined: Jan. 2018
Offline
I have a box positioned at the origin. I have another object which is completely free to move around and orbit the box in all directions. I want the box at the origin to rotate and face the object in orbit, but to constrain it so it only rotates around the Y-axis.

Using Look At causes the box to rotate in all three axes, which isn't what I want.
User Avatar
Member
504 posts
Joined: July 2005
Offline
Hi,

here is an approach using the wrangle, but it I think it can be done easier/faster. For example it isn't necessary to calculate the transformation matrix for each point again.

Attachments:
LookAtFixedAxis.hipnc (74.7 KB)

User Avatar
Staff
3465 posts
Joined: July 2005
Online
https://www.sidefx.com/forum/topic/44923/ [www.sidefx.com]
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
  • Quick Links