Using AlignOrientation with CFrame.lookAt

Hi, so I’m making a guided missle that uses an AlignOrientation to steer itself. To get the target orientation of the missle I’m doing CFrame.lookAt(MisslePosition, TargetPosition).

My question is how can I translate that CFrame to the AlignOrientation using the OneAttachment mode so that it rotates towards the target orientation.

So what should I set PrimaryAxis and SecondaryAxis to based on that CFrame
image

You can just set the CFrame of the align orientation

image

1 Like

Oh wow I didn’t realise it had that property, thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.