Hello,
I’m trying to recreate Minecraft’s head movement. However, whenever my mouse is in the centre of the character’s head, it doesn’t look straight ahead.
What it should look like:
(Notice when my mouse is in the centre, my character is looking forward)
Here’s what I have:
Code (This is a snippet, if you require more, please request):
local Point = Mouse.Hit.p
Dist = (Head.CFrame.p-Point).magnitude
Diff = Head.CFrame.Y-Point.Y
Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang((aTan(Diff/Dist)*HeadVertFactor), 0, (((HdPos-Point).Unit):Cross(TrsoLV)).Y*HeadHorFactor), UpdateSpeed/2)