Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrotorres1001 committed May 15, 2024
1 parent 0ead9f4 commit fa5611b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/useControls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ export const useControls = (vehicleApi, chassisApi) => {
}

if (controls.a) {
vehicleApi.setSteeringValue(0.1, 2);
vehicleApi.setSteeringValue(0.1, 3);
vehicleApi.setSteeringValue(0.2, 2);
vehicleApi.setSteeringValue(0.2, 3);
vehicleApi.setSteeringValue(-0.05, 0);
vehicleApi.setSteeringValue(-0.05, 1);
} else if (controls.d) {
vehicleApi.setSteeringValue(-0.1, 2);
vehicleApi.setSteeringValue(-0.1, 3);
vehicleApi.setSteeringValue(-0.2, 2);
vehicleApi.setSteeringValue(-0.2, 3);
vehicleApi.setSteeringValue(0.05, 0);
vehicleApi.setSteeringValue(0.05, 1);
} else {
Expand Down

0 comments on commit fa5611b

Please sign in to comment.