- Home /
Rotation Problem
Hello,
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);
Much greetings
Answer by marceltmg · Oct 21, 2018 at 04:44 AM
My aim is it to execute a clean up and down rotation with my arm or better to say a extern object, but even that isn`t working at all and solves a kind o raw quatioion behaviour, but i can`t understand way, because i had not any problems with the pistol.
Your answer
Follow this Question
Related Questions
Quaternion.slerp messing with wrong axies 1 Answer
How to rotate a camera relative to the player ? 0 Answers
Fixing imported model axis. 1 Answer
Why does the wheel rotate on a different axis? 1 Answer
Camera moves with player in doom-like 0 Answers