summaryrefslogtreecommitdiffhomepage
path: root/examples/models
diff options
context:
space:
mode:
authorNikolay Krasheninnikov <[email protected]>2022-07-29 12:54:37 +0300
committerGitHub <[email protected]>2022-07-29 11:54:37 +0200
commit52345fd883cb2fc7bed84d6a8dcc4e9e6dc9eb78 (patch)
treee0fe47a58b212767ee8ae07049f269f306242c6f /examples/models
parent241d6526b078e262ecae340cd974eb715be17471 (diff)
downloadraylib-52345fd883cb2fc7bed84d6a8dcc4e9e6dc9eb78.tar.gz
raylib-52345fd883cb2fc7bed84d6a8dcc4e9e6dc9eb78.zip
[raymath] Rotation functions returns clockwise rotation matrix, #2595 (#2599)
Co-authored-by: Nikolai Krasheninnikov <[email protected]>
Diffstat (limited to 'examples/models')
-rw-r--r--examples/models/models_yaw_pitch_roll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/models/models_yaw_pitch_roll.c b/examples/models/models_yaw_pitch_roll.c
index 967be772..d3db9d06 100644
--- a/examples/models/models_yaw_pitch_roll.c
+++ b/examples/models/models_yaw_pitch_roll.c
@@ -63,8 +63,8 @@ int main(void)
}
// Plane yaw (y-axis) controls
- if (IsKeyDown(KEY_S)) yaw += 1.0f;
- else if (IsKeyDown(KEY_A)) yaw -= 1.0f;
+ if (IsKeyDown(KEY_S)) yaw -= 1.0f;
+ else if (IsKeyDown(KEY_A)) yaw += 1.0f;
else
{
if (yaw > 0.0f) yaw -= 0.5f;
@@ -72,8 +72,8 @@ int main(void)
}
// Plane roll (z-axis) controls
- if (IsKeyDown(KEY_LEFT)) roll += 1.0f;
- else if (IsKeyDown(KEY_RIGHT)) roll -= 1.0f;
+ if (IsKeyDown(KEY_LEFT)) roll -= 1.0f;
+ else if (IsKeyDown(KEY_RIGHT)) roll += 1.0f;
else
{
if (roll > 0.0f) roll -= 0.5f;