Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Read Only 1 Axis of Rotation From CFrame?

Asked by 6 years ago
Edited 6 years ago

I am attempting to rotate the HumanoidRootPart along the Y axis only to rotate the player towards where the head is facing. The head is locked to the Camera and rotates with it.

I have tried circumventing this problem by using BodyGyro, but it does not satisfy me, as it is loose and inaccurate.

Is it possible to read each specific axis of rotation on a part's coordinate frame? I would like to take only the Y axis rotation of a part and apply that to another.

0
I've attempted to interpret CFrame:toAxisAngle() to no avail. It returns 4 values, and I'm not sure what each one represents. plebgod 0 — 6y
0
Simplified question: How do I get the HumanoidRootPart to rotate where the camera is looking? plebgod 0 — 6y

Answer this question