mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2025-02-17 11:18:37 +01:00
Update model and add custom none-vr FOV
This commit is contained in:
parent
bca5cf6480
commit
5dda598b68
Binary file not shown.
@ -3242,6 +3242,7 @@ MonoBehaviour:
|
||||
RHandObj: {fileID: 995594085}
|
||||
ScreenObj: {fileID: 856927129}
|
||||
SmoothCameraObj: {fileID: 366364277}
|
||||
SmoothCamera: {fileID: 366364279}
|
||||
XROriginObj: {fileID: 1647048262}
|
||||
--- !u!4 &1419342723
|
||||
Transform:
|
||||
|
@ -24,6 +24,7 @@ public class SettingsManager : MonoBehaviour
|
||||
CaptureFrameRate = 90,
|
||||
TouchRefreshRate = 90,
|
||||
CameraSmooth = 0.1f,
|
||||
CameraFOV = 85f,
|
||||
HapticDuration = 0.15f,
|
||||
HapticAmplitude = 1
|
||||
};
|
||||
@ -59,6 +60,7 @@ public class SettingsManager : MonoBehaviour
|
||||
public GameObject RHandObj;
|
||||
public GameObject ScreenObj;
|
||||
public GameObject SmoothCameraObj;
|
||||
public Camera SmoothCamera;
|
||||
public GameObject XROriginObj;
|
||||
|
||||
void UpdateFromFile()
|
||||
@ -73,6 +75,7 @@ public class SettingsManager : MonoBehaviour
|
||||
ScreenScp.captureFrameRate = Setting.CaptureFrameRate;
|
||||
CameraSmooth CameraSmoothScp = SmoothCameraObj.GetComponent<CameraSmooth>();
|
||||
CameraSmoothScp.smoothSpeed = Setting.CameraSmooth;
|
||||
SmoothCamera.fieldOfView = Setting.CameraFOV;
|
||||
Controller LHandScp = LHandObj.GetComponent<Controller>();
|
||||
LHandScp.amplitude = Setting.HapticAmplitude;
|
||||
Controller RHandScp = RHandObj.GetComponent<Controller>();
|
||||
@ -94,6 +97,7 @@ public class Settings
|
||||
public int CaptureFrameRate { get; set; }
|
||||
public float TouchRefreshRate { get; set; }
|
||||
public float CameraSmooth { get; set; }
|
||||
public float CameraFOV { get; set; }
|
||||
public float HapticDuration { get; set; }
|
||||
public float HapticAmplitude { get; set; }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user