示例#1
0
    //Updates and rotates chest with mouselook
    private void UpdateChestRotation()
    {
        Vector3 rot = transform.rotation.eulerAngles - m_GayQuaternion.eulerAngles - m_StraightQuaternion.eulerAngles;

        rot.z = -m_PitchChange;

        m_GayQuaternion = Quaternion.Euler(m_GayQuaternion.eulerAngles + rot);
        m_GayQuaternion = Chestbone.rotation = MathFunc.ClampQuaternionZRotation(m_GayQuaternion, 200, 340);
    }