Skip to content

Commit

Permalink
Refactor angle adjustment calculation in car handling for improved re…
Browse files Browse the repository at this point in the history
…sponsiveness (#133)
  • Loading branch information
MiguelRipoll23 authored Jan 4, 2025
1 parent 4c2863d commit 6cf69d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects/local-car-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class LocalCarObject extends CarObject {
return (
currentAngle +
Math.sign(angleDifference) *
Math.min(Math.abs(angleDifference), 0.1 * deltaTimeStamp)
Math.min(Math.abs(angleDifference), this.HANDLING * deltaTimeStamp)
);
}
}

0 comments on commit 6cf69d8

Please sign in to comment.