Skip to content

Commit

Permalink
Formatted Physics.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Jan 7, 2024
1 parent 34c35cf commit aba1eaa
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions indigo/indigo/src/main/scala/indigo/physics/Physics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,15 @@ object Physics:
IndexedCollider(index, c, c)

case c @ Collider.Circle(_, bounds, mass, velocity, terminalVelocity, _, _, _, _, _) =>
val (p, v) = calculateNewMovement(timeDelta, worldForces, worldResistance, c.bounds.position, velocity, terminalVelocity, mass)
val (p, v) = calculateNewMovement(
timeDelta,
worldForces,
worldResistance,
c.bounds.position,
velocity,
terminalVelocity,
mass
)

IndexedCollider(
index,
Expand All @@ -97,7 +105,15 @@ object Physics:
IndexedCollider(index, c, c)

case c @ Collider.Box(_, bounds, mass, velocity, terminalVelocity, _, _, _, _, _) =>
val (p, v) = calculateNewMovement(timeDelta, worldForces, worldResistance, c.bounds.position, velocity, terminalVelocity, mass)
val (p, v) = calculateNewMovement(
timeDelta,
worldForces,
worldResistance,
c.bounds.position,
velocity,
terminalVelocity,
mass
)

IndexedCollider(
index,
Expand Down

0 comments on commit aba1eaa

Please sign in to comment.