Added panel for box collider and created first rigidbody

This commit is contained in:
Antoine Pilote
2023-03-07 21:40:33 -05:00
parent 6cbad0e13b
commit 65df50e722
13 changed files with 97 additions and 33 deletions

View File

@@ -33,6 +33,7 @@ namespace Nuake
if (!previous && controlled)
{
firstMouse = true;
mouseLastX = x;
mouseLastY = y;
}
@@ -42,6 +43,7 @@ namespace Nuake
if (controlled && !isPressingMouse)
{
controlled = false;
firstMouse = true;
}
}
@@ -145,6 +147,7 @@ namespace Nuake
if (Pitch > 89.0f)
Pitch = 89.0f;
if (Pitch < -89.0f)
Pitch = -89.0f;
@@ -172,7 +175,9 @@ namespace Nuake
Translation += Vector3(Direction) * Input::YScroll;
Input::YScroll = 0.0f;
}
else
{
}
mouseLastX = x;
mouseLastY = y;
}