CFrame not matching with desired outcome

This might be a little hard to explain, so I’ll try my best. I might clarify more in the replies.

I’ve been trying to get animations to play on a ragdoll by matching the pose on an animation to an attachment’s position, then moving the limb with torsion springs. One glaring issue I’ve come across is that the CFrame acts weirdly. Whenever I move an attachment 90 degrees in one axis manually with the rotate tool in studio, all the other axis values change, but still results in a true 90-degree turn When I try to change one axis in a script using CFrame *= CFrame.Angles(math.pi/2, 0, 0), it doesnt produce the desired result.
These are two photos of the expected result and the actual result.
image

This is a photo showing the difference before using the rotate tool in studio and after using it to rotate an attachment 90 degrees.
image
image

I want to know if its possible to fix this behavior, or at least combat it.

2 Likes

Just realized these weird orientations came from rotating the attachment while it’s parent was moving. The root of the problem is the torsionsprings, which I should be able to fix easily.

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