-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
3,460 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class FirstPerson : MonoBehaviour | ||
{ | ||
[Header("References")] | ||
[SerializeField] private Transform playerBody; | ||
[SerializeField] private Transform playerHead; | ||
|
||
[Header("Options")] | ||
[SerializeField] private float horizontalSense = 1; | ||
[SerializeField] private float verticalSense = 1; | ||
[SerializeField] private int fov = 100; | ||
// bool invert_y_axis | ||
|
||
private float _xRotation = 0f; | ||
private float _yRotation = 0f; | ||
|
||
void Start() | ||
{ | ||
Cursor.lockState = CursorLockMode.Locked; | ||
|
||
} | ||
|
||
void Update() | ||
{ | ||
float horizontalInput = Input.GetAxisRaw("Mouse X") * horizontalSense; | ||
float verticalInput = Input.GetAxisRaw("Mouse Y") * verticalSense; | ||
|
||
_xRotation += horizontalInput; | ||
_yRotation += verticalInput; | ||
|
||
transform.localEulerAngles = new Vector3(-_yRotation, _xRotation, 0); | ||
|
||
playerBody.localEulerAngles = new Vector3(0, _xRotation, 0); | ||
} | ||
|
||
private void LateUpdate() | ||
{ | ||
transform.position = playerHead.position; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
171 changes: 171 additions & 0 deletions
171
ProjectSettings/Packages/com.unity.probuilder/Settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
{ | ||
"m_Dictionary": { | ||
"m_DictionaryValues": [ | ||
{ | ||
"type": "UnityEngine.ProBuilder.SemVer, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "about.identifier", | ||
"value": "{\"m_Value\":{\"m_Major\":5,\"m_Minor\":2,\"m_Patch\":3,\"m_Build\":-1,\"m_Type\":\"\",\"m_Metadata\":\"\",\"m_Date\":\"\"}}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.SemVer, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "preferences.version", | ||
"value": "{\"m_Value\":{\"m_Major\":5,\"m_Minor\":2,\"m_Patch\":3,\"m_Build\":-1,\"m_Type\":\"\",\"m_Metadata\":\"\",\"m_Date\":\"\"}}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.LogLevel, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "log.level", | ||
"value": "{\"m_Value\":3}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.LogOutput, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "log.output", | ||
"value": "{\"m_Value\":1}" | ||
}, | ||
{ | ||
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "log.path", | ||
"value": "{\"m_Value\":\"ProBuilderLog.txt\"}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "UnityEngine.ProBuilder.ProBuilderEditor-isUtilityWindow", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "editor.backFaceSelectEnabled", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "editor.toolbarIconGUI", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "experimental.enabled", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "editor.showSceneInfo", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "ShapeComponent.ResetSettings", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "ShapeComponent.SettingsEnabled", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "mesh.newShapesSnapToGrid", | ||
"value": "{\"m_Value\":true}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "mesh.meshColliderIsConvex", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "lightmapping.autoUnwrapLightmapUV", | ||
"value": "{\"m_Value\":true}" | ||
}, | ||
{ | ||
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "editor.autoRecalculateCollisions", | ||
"value": "{\"m_Value\":false}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.SelectMode, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "editor.selectMode", | ||
"value": "{\"m_Value\":1}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.SelectMode, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "editor.lastMeshSelectMode", | ||
"value": "{\"m_Value\":8}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.SelectionModifierBehavior, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "editor.rectSelectModifier", | ||
"value": "{\"m_Value\":2}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.RectSelectMode, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "editor.dragSelectRectMode", | ||
"value": "{\"m_Value\":0}" | ||
}, | ||
{ | ||
"type": "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "ShapeBuilder.ActiveShapeIndex", | ||
"value": "{\"m_Value\":6}" | ||
}, | ||
{ | ||
"type": "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", | ||
"key": "ShapeBuilder.LastPivotLocation", | ||
"value": "{\"m_Value\":1}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.PivotLocation, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "mesh.newShapePivotLocation", | ||
"value": "{\"m_Value\":1}" | ||
}, | ||
{ | ||
"type": "UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "ShapeBuilder.LastPivotPosition", | ||
"value": "{\"m_Value\":{\"x\":0.0,\"y\":0.0,\"z\":0.0}}" | ||
}, | ||
{ | ||
"type": "UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "ShapeBuilder.LastSize", | ||
"value": "{\"m_Value\":{\"x\":1.29327392578125,\"y\":5.987663269042969,\"z\":13.49951171875}}" | ||
}, | ||
{ | ||
"type": "UnityEngine.Quaternion, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "ShapeBuilder.LastRotation", | ||
"value": "{\"m_Value\":{\"x\":0.0,\"y\":0.0,\"z\":0.0,\"w\":1.0}}" | ||
}, | ||
{ | ||
"type": "UnityEngine.Material, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "mesh.userMaterial", | ||
"value": "{\"m_Value\":{\"instanceID\":0}}" | ||
}, | ||
{ | ||
"type": "UnityEngine.Rendering.ShadowCastingMode, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "mesh.shadowCastingMode", | ||
"value": "{\"m_Value\":1}" | ||
}, | ||
{ | ||
"type": "UnityEditor.StaticEditorFlags, UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "mesh.defaultStaticEditorFlags", | ||
"value": "{\"m_Value\":0}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.ColliderType, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "mesh.newShapeColliderType", | ||
"value": "{\"m_Value\":2}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.UnwrapParameters, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "lightmapping.defaultLightmapUnwrapParameters", | ||
"value": "{\"m_Value\":{\"m_HardAngle\":88.0,\"m_PackMargin\":20.0,\"m_AngleError\":8.0,\"m_AreaError\":15.0}}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.Shapes.Shape, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "ShapeBuilder.Plane", | ||
"value": "{}" | ||
}, | ||
{ | ||
"type": "UnityEngine.ProBuilder.Shapes.Shape, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", | ||
"key": "ShapeBuilder.Cube", | ||
"value": "{}" | ||
} | ||
] | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.