Merge pull request #14 from Just-Random-Dev/main
fix camera up and down movement and ignore missing pdb warning
This commit is contained in:
commit
70157a4f7f
@ -130,6 +130,7 @@
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>glfw3.lib;opengl32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
@ -148,6 +149,7 @@
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>glfw3.lib;opengl32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
|
@ -38,9 +38,9 @@ void Camera::ProcessKeyboard(Camera_Movement direction, float deltaTime)
|
||||
if (direction == RIGHT)
|
||||
Position += Right * velocity;
|
||||
if (direction == UP)
|
||||
Position += Up * velocity;
|
||||
Position.y += 1 * velocity;
|
||||
if (direction == DOWN)
|
||||
Position -= Up * velocity;
|
||||
Position.y -= 1 * velocity;
|
||||
if (direction == FORWARD_NO_Y)
|
||||
{
|
||||
glm::vec3 moveDir = Front;
|
||||
|
Loading…
Reference in New Issue
Block a user