Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rm committed Mar 24, 2024
1 parent f216899 commit e072418
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 26 deletions.
16 changes: 8 additions & 8 deletions examples/review/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
"elm/core": "1.0.5",
"elm/json": "1.1.3",
"elm/project-metadata-utils": "1.0.1",
"jfmengels/elm-review": "2.4.1",
"jfmengels/elm-review-simplify": "1.0.1",
"jfmengels/elm-review-unused": "1.1.9",
"jfmengels/elm-review-performance": "1.0.0",
"stil4m/elm-syntax": "7.2.2"
"jfmengels/elm-review": "2.13.1",
"jfmengels/elm-review-simplify": "2.1.3",
"jfmengels/elm-review-unused": "1.2.0",
"jfmengels/elm-review-performance": "1.0.2",
"stil4m/elm-syntax": "7.3.2"
},
"indirect": {
"elm/html": "1.0.0",
"elm/parser": "1.1.0",
"elm/random": "1.0.0",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.2",
"elm-community/list-extra": "8.3.0",
"elm-explorations/test": "1.2.2",
"elm-community/list-extra": "8.7.0",
"elm-explorations/test": "2.2.0",
"rtfeldman/elm-hex": "1.0.0",
"stil4m/structured-writer": "1.0.3"
}
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "1.2.2"
"elm-explorations/test": "2.2.0"
},
"indirect": {}
}
Expand Down
15 changes: 6 additions & 9 deletions examples/src/RaycastCar/Car.elm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ updateSuspension : CarSettings -> Duration -> World id -> Frame3d Meters WorldCo
updateSuspension carSettings dt world frame originalCar currentWheels updatedCar updatedWheels numWheelsOnGround =
case currentWheels of
[] ->
updateFriction carSettings dt world frame updatedCar numWheelsOnGround updatedWheels [] [] False
updateFriction carSettings dt frame updatedCar numWheelsOnGround updatedWheels [] [] False

wheel :: remainingWheels ->
let
Expand Down Expand Up @@ -255,11 +255,11 @@ type alias WheelFriction id =
}


updateFriction : CarSettings -> Duration -> World id -> Frame3d Meters WorldCoordinates { defines : BodyCoordinates } -> Body id -> Int -> List (Wheel id) -> List (WheelFriction id) -> List (Wheel id) -> Bool -> ( Body id, List (Wheel id) )
updateFriction carSettings dt world frame updatedCar numWheelsOnGround currentWheels wheelFrictions updatedWheels sliding =
updateFriction : CarSettings -> Duration -> Frame3d Meters WorldCoordinates { defines : BodyCoordinates } -> Body id -> Int -> List (Wheel id) -> List (WheelFriction id) -> List (Wheel id) -> Bool -> ( Body id, List (Wheel id) )
updateFriction carSettings dt frame updatedCar numWheelsOnGround currentWheels wheelFrictions updatedWheels sliding =
case currentWheels of
[] ->
applyImpulses carSettings dt world frame updatedCar updatedWheels sliding wheelFrictions
applyImpulses carSettings dt frame updatedCar updatedWheels sliding wheelFrictions

wheel :: remainingWheels ->
case wheel.contact of
Expand Down Expand Up @@ -320,7 +320,6 @@ updateFriction carSettings dt world frame updatedCar numWheelsOnGround currentWh
in
updateFriction carSettings
dt
world
frame
updatedCar
numWheelsOnGround
Expand All @@ -341,7 +340,6 @@ updateFriction carSettings dt world frame updatedCar numWheelsOnGround currentWh
Nothing ->
updateFriction carSettings
dt
world
frame
updatedCar
numWheelsOnGround
Expand All @@ -351,8 +349,8 @@ updateFriction carSettings dt world frame updatedCar numWheelsOnGround currentWh
sliding


applyImpulses : CarSettings -> Duration -> World id -> Frame3d Meters WorldCoordinates { defines : BodyCoordinates } -> Body id -> List (Wheel id) -> Bool -> List (WheelFriction id) -> ( Body id, List (Wheel id) )
applyImpulses carSettings dt world frame carBody wheels sliding wheelFrictions =
applyImpulses : CarSettings -> Duration -> Frame3d Meters WorldCoordinates { defines : BodyCoordinates } -> Body id -> List (Wheel id) -> Bool -> List (WheelFriction id) -> ( Body id, List (Wheel id) )
applyImpulses carSettings dt frame carBody wheels sliding wheelFrictions =
case wheelFrictions of
[] ->
rotateWheels carSettings dt frame carBody wheels []
Expand Down Expand Up @@ -398,7 +396,6 @@ applyImpulses carSettings dt world frame carBody wheels sliding wheelFrictions =
in
applyImpulses carSettings
dt
world
frame
newCar
wheels
Expand Down
16 changes: 8 additions & 8 deletions sandbox/review/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
"elm/core": "1.0.5",
"elm/json": "1.1.3",
"elm/project-metadata-utils": "1.0.1",
"jfmengels/elm-review": "2.4.1",
"jfmengels/elm-review-simplify": "1.0.1",
"jfmengels/elm-review-unused": "1.1.9",
"jfmengels/elm-review-performance": "1.0.0",
"stil4m/elm-syntax": "7.2.2"
"jfmengels/elm-review": "2.13.1",
"jfmengels/elm-review-simplify": "2.1.3",
"jfmengels/elm-review-unused": "1.2.0",
"jfmengels/elm-review-performance": "1.0.2",
"stil4m/elm-syntax": "7.3.2"
},
"indirect": {
"elm/html": "1.0.0",
"elm/parser": "1.1.0",
"elm/random": "1.0.0",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.2",
"elm-community/list-extra": "8.3.0",
"elm-explorations/test": "1.2.2",
"elm-community/list-extra": "8.7.0",
"elm-explorations/test": "2.2.0",
"rtfeldman/elm-hex": "1.0.0",
"stil4m/structured-writer": "1.0.3"
}
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "1.2.2"
"elm-explorations/test": "2.2.0"
},
"indirect": {}
}
Expand Down
1 change: 0 additions & 1 deletion sandbox/src/CompoundVsLock.elm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import Duration
import Frame3d
import Html exposing (Html)
import Html.Events exposing (onClick)
import Internal.Constraint exposing (Constraint)
import Length exposing (Meters)
import Mass
import Physics.Body as Body exposing (Body)
Expand Down

0 comments on commit e072418

Please sign in to comment.