Skip to content

Commit

Permalink
Fix bug with soft wall drift
Browse files Browse the repository at this point in the history
  • Loading branch information
vabold committed Feb 19, 2025
1 parent a11827c commit ed07430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/game/kart/KartSub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void KartSub::tryEndHWG() {
state()->isAllWheelsCollision()) {
state()->setSoftWallDrift(false);
} else if (state()->isTouchingGround()) {
if (componentXAxis().dot(EGG::Vector3f::ey) > 0.8f) {
if (EGG::Mathf::abs(componentXAxis().dot(EGG::Vector3f::ey)) > 0.8f) {
state()->setSoftWallDrift(false);
}
}
Expand Down

0 comments on commit ed07430

Please sign in to comment.