Hello people,
I’m working on a script moving the arm of my character in the direction where the camera’s looking.
Can’t figure out why it’s not working…
Here’s the script, in the Player Control script, where cam is the camera GO, armControl is the bone i’d like to move, armRot is just a float.
void LateUpdate()
{
armRot = cam.transform.rotation.x;
armControl.Rotate(armRot, 0, 0);
}
Thank you!!