playMaker

Author Topic: Look At Rotation Trouble  (Read 858 times)

acornbringer

  • Junior Playmaker
  • **
  • Posts: 82
    • Acornbringer.com
Look At Rotation Trouble
« on: July 11, 2022, 10:51:43 AM »
I've created a little virtual handle that lets the player click and drag a controller around to pivot an object. It uses the Look At action so the cube inside the pivot point tracks the target.

The problem I've encountered is when I try to rotate the parent, the pivot point doesn't rotate with it making the cube always face the same way. Here's a video I made to show the effect:

https://i.imgur.com/Mr0WgTb.mp4

In the video, I placed an extra cube there for reference. Ideally, the handle would behave the same way - keeping it's rotations while moving along with the parent - but instead, the handle rotates inversely to its parent.

I've tried different ways of parenting and adding Look At actions to various parts of the hierarchy but haven't had any luck. Any suggestions or insights would be greatly appreciated!

Thanks :)