Hopefully there's okay comments on things now

This commit is contained in:
2024-10-20 02:47:43 -07:00
parent eb47adf2d2
commit fd6657047b
6 changed files with 35 additions and 9 deletions

View File

@@ -11,6 +11,7 @@ public class Sword : MonoBehaviour
// Update is called once per frame
void Update()
{
// Point sword towards mouse cursor with garbage trig
transform.rotation = Quaternion.Euler(
new Vector3 (0, 0, Mathf.Atan2(
Screen.height/2 - Input.mousePosition.y,