2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-09-09 03:01:41 -04:00

Initial example update

- Updating examples with new changes.
This commit is contained in:
2019-02-11 11:30:02 +00:00
parent 796b4997a1
commit b841a28177
45 changed files with 419 additions and 389 deletions

View File

@@ -70,8 +70,8 @@ public partial class models_yaw_pitch_roll
//----------------------------------------------------------------------------------
// Plane roll (x-axis) controls
if (IsKeyDown(KEY_LEFT)) roll += 1.0f;
else if (IsKeyDown(KEY_RIGHT)) roll -= 1.0f;
if (IsKeyDown(KeyboardKey.KEY_LEFT)) roll += 1.0f;
else if (IsKeyDown(KeyboardKey.KEY_RIGHT)) roll -= 1.0f;
else
{
if (roll > 0.0f) roll -= 0.5f;
@@ -79,8 +79,8 @@ public partial class models_yaw_pitch_roll
}
// Plane yaw (y-axis) controls
if (IsKeyDown(KEY_S)) yaw += 1.0f;
else if (IsKeyDown(KEY_A)) yaw -= 1.0f;
if (IsKeyDown(KeyboardKey.KEY_S)) yaw += 1.0f;
else if (IsKeyDown(KeyboardKey.KEY_A)) yaw -= 1.0f;
else
{
if (yaw > 0.0f) yaw -= 0.5f;
@@ -88,8 +88,8 @@ public partial class models_yaw_pitch_roll
}
// Plane pitch (z-axis) controls
if (IsKeyDown(KEY_DOWN)) pitch += 0.6f;
else if (IsKeyDown(KEY_UP)) pitch -= 0.6f;
if (IsKeyDown(KeyboardKey.KEY_DOWN)) pitch += 0.6f;
else if (IsKeyDown(KeyboardKey.KEY_UP)) pitch -= 0.6f;
else
{
if (pitch > 0.3f) pitch -= 0.3f;