Skip to content

Commit

Permalink
カメラの移動速度の感度を低く
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-akira committed Jul 10, 2018
1 parent cee65a9 commit 2ad9948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/Scripts/ControlWinFormsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,20 +513,20 @@ private void CameraMouseEvent()
{ // 注視点
if (currentCameraLookTarget == null) //フリーカメラ
{
currentCamera.transform.Translate(-diff * Time.deltaTime * 0.5f);
currentCamera.transform.Translate(-diff * Time.deltaTime * 1.1f);
if (CurrentSettings.FreeCameraTransform == null) CurrentSettings.FreeCameraTransform = new StoreTransform(currentCamera.transform);
CurrentSettings.FreeCameraTransform.SetPosition(currentCamera.transform);
}
else //固定カメラ
{
currentCameraLookTarget.Offset += new Vector3(0, -diff.y, 0) * 0.005f;
currentCameraLookTarget.Offset += new Vector3(0, -diff.y, 0) * Time.deltaTime * 1.1f;
SaveLookTarget(currentCamera);
}
}
else if (Input.GetMouseButton((int)MouseButtons.Right))
{ // 回転
currentCamera.transform.RotateAround(currentCamera.transform.position, currentCamera.transform.right, -diff.y * 0.3f);
currentCamera.transform.RotateAround(currentCamera.transform.position, Vector3.up, diff.x * 0.3f);
currentCamera.transform.RotateAround(currentCamera.transform.position, currentCamera.transform.right, -diff.y * Time.deltaTime * 30.0f);
currentCamera.transform.RotateAround(currentCamera.transform.position, Vector3.up, diff.x * Time.deltaTime * 30.0f);
if (CurrentSettings.FreeCameraTransform == null) CurrentSettings.FreeCameraTransform = new StoreTransform(currentCamera.transform);
CurrentSettings.FreeCameraTransform.SetRotation(currentCamera.transform);
}
Expand Down

0 comments on commit 2ad9948

Please sign in to comment.