Skip to content

Commit

Permalink
Additional Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSample15 committed Apr 7, 2022
1 parent b1472e2 commit 8c27797
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions VideoGameClub2022/Assets/Main.unity
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641258, b: 0.5748171, a: 1}
m_IndirectSpecularColor: {r: 0.44657826, g: 0.49641263, b: 0.57481676, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
Expand Down Expand Up @@ -982,9 +982,9 @@ MonoBehaviour:
camera: {fileID: 47622665}
cameraYOffset: 0.83
headBobIntensityX: 0
headBobIntensityY: 0.5
headBobSpeed: 1.39
MovementSpeed: 4
headBobIntensityY: 10
headBobSpeed: 0.1
MovementSpeed: 2
MouseSensitivity: 2.97
highlightShader: {fileID: 2100000, guid: 4a4a73a74bea09b4ca7fb69b714c34c8, type: 2}
--- !u!1 &854681399
Expand Down
3 changes: 2 additions & 1 deletion VideoGameClub2022/Assets/Scripts/Player/PlayerScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ private void updateCamera()
{
//if the player is moving, bob the camera
movementTimer += Time.deltaTime * headBobSpeed; //update movement based off of time
Debug.Log(movementTimer);
headBobY = Mathf.Sin(movementTimer) * headBobIntensityY;
}
else
{
headBobY = 0;
movementTimer = 0;
}

//Debug.Log(headBobY);
camera.transform.position = new Vector3(transform.position.x, transform.position.y + cameraYOffset, transform.position.z);
camera.transform.eulerAngles = new Vector3(camX, camY, 0);

Expand Down

0 comments on commit 8c27797

Please sign in to comment.