currently i am on the way to programm a shotgun in and a pistol is already success done. My aim is it to rotate my arm, which has a degrees down and up, for the FPS. To handle this, i want to rotate a extern gameobject and transfer its rotation on my arm. The Problem i have is, that a normal eulerangel or transform.rotate seems like to be a raw quaternion which let my arm go up and down for the aim, but it rotates in a cycle.
that is there the null position of the arm :
The spot of the roation is 0,0,0 but i can`t figure out, whats the problem on it, i hope that anyone can help me
script code :
arm_rotation_right += Input.GetAxis(“Mouse Y”) * roationSpeed * Time.deltaTime;
arm_up_right.transform.eulerAngles = new Vector3(arm_up_right.transform.eulerAngles.x,
player.transform.eulerAngles.y - 145, -arm_rotation_right);