tweak head turn return to respect X angles

Head turn would be janky if Y angle reached 0 before X axis reached target angle.
This commit is contained in:
NotAKidoS 2023-03-03 18:44:49 -06:00
parent ff70ae9652
commit 3ebd743227
3 changed files with 8 additions and 4 deletions

View file

@ -75,7 +75,7 @@ public class QuickMenuHelper : MonoBehaviour
{
if (MSP_MenuInfo.CameraTransform == null || MSP_MenuInfo.DisableQMHelper) return;
Transform activeAnchor = MSP_MenuInfo.independentHeadTurn ? worldAnchor : MSP_MenuInfo.CameraTransform;
Transform activeAnchor = MSP_MenuInfo.isIndependentHeadTurn ? worldAnchor : MSP_MenuInfo.CameraTransform;
transform.localScale = new Vector3(1f * MSP_MenuInfo.ScaleFactor, 1f * MSP_MenuInfo.ScaleFactor, 1f);
transform.rotation = activeAnchor.rotation;
transform.position = activeAnchor.position + activeAnchor.transform.forward * 1f * MSP_MenuInfo.ScaleFactor;