mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
add aspect ratio calculation
This commit is contained in:
parent
de1a54c7a0
commit
8ef891434a
3 changed files with 19 additions and 11 deletions
|
@ -146,7 +146,7 @@ public class MainMenuHelper : MonoBehaviour
|
|||
Transform activeAnchor = independentHeadTurn ? worldAnchor : MSP_MenuInfo.CameraTransform;
|
||||
transform.localScale = new Vector3(1.6f * MSP_MenuInfo.ScaleFactor, 0.9f * MSP_MenuInfo.ScaleFactor, 1f);
|
||||
transform.eulerAngles = activeAnchor.eulerAngles;
|
||||
transform.position = activeAnchor.position + activeAnchor.forward * 1f * MSP_MenuInfo.ScaleFactor;
|
||||
transform.position = activeAnchor.position + activeAnchor.forward * 1f * MSP_MenuInfo.ScaleFactor * MSP_MenuInfo.AspectRatio;
|
||||
}
|
||||
|
||||
//VR Main Menu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue