완료 시간 알람 기능 복원 및 카메라 시점 기능 개발

This commit is contained in:
정영민
2025-03-12 18:55:01 +09:00
parent 731ab1bb7a
commit 7a9541be4b
14 changed files with 22465 additions and 531 deletions

View File

@@ -26,18 +26,18 @@ MonoBehaviour:
_elevationRotateLimit: 0
_isFirstPersonView: 0
originElevation: 28.5
currentElevation: 28.5
currentElevation: 90
elevationSensivity: 15
minElevation: 5
maxElevation: 90
originAzimuth: 133
currentAzimuth: 133
currentAzimuth: 89.75
azimuthSensivity: 15
maxDistance: 150
minDistance: 5
moveClamper: 0.5334569
moveClamper: 0.033333335
originDistance: 120
originTargetPos: {x: -37.685005, y: 27, z: 29.893412}
originTargetRot: {x: -0, y: 0, z: 0}
currentDistance: 120.02781
currentDistance: 115.012886
target: {fileID: 0}

View File

@@ -161,8 +161,6 @@ namespace WI
moveVector *= option.moveClamper * option.moveSpeed * option.moveSensivity;
nextPosition = option.target.position - moveVector;
}
}
Vector3 CalculateMovePosition(Vector3 origPos, Vector3 moveVec)
@@ -277,6 +275,7 @@ namespace WI
var distPos = Quaternion.Euler(option.currentElevation, option.currentAzimuth, 0f) * dist;
cameraPosition = nextPosition + distPos;
camera.transform.position = cameraPosition;
camera.orthographicSize = Mathf.Clamp(option.currentDistance, option.minDistance, option.maxDistance);
if (option.currentElevation <= 90f)
{
@@ -378,22 +377,14 @@ namespace WI
break;
}
}
public void ChangeCameraView()
{
if (!option.isFirstPersonView)
{
SetViewMode(ViewMode.FirstPersonView);
}
else
{
SetViewMode(ViewMode.PerspectiveView);
}
}
public void CameraTopView()
{
option.maxDistance = 35f;
option.currentElevation = 90f;
CameraFix();
option.currentDistance = 35f;
option.currentAzimuth = 0f;
LastPositioning(true);
}
public void CameraFirstPersonView()
{
@@ -406,6 +397,7 @@ namespace WI
}
public void CameraPerspectiveView()
{
option.maxDistance = 150f;
option.currentDistance = option.originDistance;
option.currentAzimuth = option.originAzimuth;
option.currentElevation = option.originElevation;
@@ -417,14 +409,6 @@ namespace WI
nextPosition = pos;
LastPositioning(true);
}
public void SetTargetYUpPos(Vector3 pos)
{
var targetPos = pos;
targetPos.y += yUpPos;
nextPosition = targetPos;
LastPositioning(true);
}
private void FindLookAtObject()
{
switch(viewMode)