2026-03-16 18:00 FPS 스타일의 정면 고정 이동 80% - 카메라Rig를 통한 aim카메라 전환 진행중
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
public class CameraManager : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private PlayerCameraRig _currentCameraRig; //현재 활성화된 플레이어의 카메라 묶음 조종객체
|
||||
[SerializeField] private AimCameraRig _currentCameraRig; //현재 활성화된 플레이어의 카메라 묶음 조종객체
|
||||
|
||||
private float minFOV = 40f;
|
||||
private float maxFOV = 100f;
|
||||
@@ -19,7 +19,7 @@ public void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||
|
||||
}
|
||||
|
||||
public void SetCameraRig(PlayerCameraRig cameraRig)
|
||||
public void SetCameraRig(AimCameraRig cameraRig)
|
||||
{
|
||||
_currentCameraRig = cameraRig;
|
||||
}
|
||||
@@ -29,6 +29,11 @@ public void ZoomCamera(float offset)
|
||||
_currentCameraRig.CurrentFOV = Mathf.Clamp(_currentCameraRig.CurrentFOV - offset, minFOV,maxFOV);
|
||||
}
|
||||
|
||||
public void RecenterPlayer()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Vector3 GetViewportPointToRayEndPoint(Vector3 vpPoint,float rayLength)
|
||||
{
|
||||
Ray ray = Camera.main.ViewportPointToRay(vpPoint);
|
||||
|
||||
Reference in New Issue
Block a user