We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55b5777 commit c3cd49aCopy full SHA for c3cd49a
noengine-cpp-sdl2/src/system_impls.cc
@@ -83,7 +83,7 @@ auto example::PhysicsParent::Physics::impl(context& ctx) -> void {
83
}
84
85
vel.y = std::clamp(vel.y, -terminal_velocity, terminal_velocity);
86
- vel.y = std::clamp(vel.y, -terminal_velocity, terminal_velocity);
+ vel.x = std::clamp(vel.x, -terminal_velocity, terminal_velocity);
87
88
ctx.update(vel);
89
0 commit comments