Perfectly centered Motor6D joint?

I’m trying to rig a model that has separate parts for the eyes so that I can animate them, but I’m struggling to perfectly center the joint inside the eye spheres.

I know the answer lies in cframes somehow, but my attempt at understanding them is failing so far and the plugins I’m using are of little help either. Is there an easy way to set it the way I want it?

I’m not certain it’s exactly what you need, but you can take a look at this plugin that @x_o made.

2 Likes

Thanks for the link, but it seems to be functionally identical to the joint editor tab in a plugin I’m already using. It still has the issue of not having a way to move the joint into the exact center of the eye.

It sure would be nice if Motor6Ds had a visible world position value like attachments do that I could use as a reference.

One way to describe Motor6D CFrames is to think of them like Attachments. C0 is the CFrame of an Attachment in Part0, and C1 is the CFrame of an Attachment in Part1. The two attachments are merged together into one point to form the point of rotation between the two parts.

It’s important to understand object space when working with CFrames.

5 Likes

You have opened my eyes. I centered it by subtracting C1 from C0 and setting C1’s position to 0,0,0. Thank you for your help.

1 Like