PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
650 stars 60 forks source link

Physics: Terminal Velocity #679

Closed davesmith00000 closed 10 months ago

davesmith00000 commented 10 months ago

Relates to: https://github.com/PurpleKingdomGames/indigo/issues/670

Allows colliders to have a terminal / maximum velocity specified. Obviously the main purpose of this is to set a max speed that a collider can accumulate, but which ever way you look at it, it's a bit a cheat since things do not have a max possible speed in reality, the "max" is just the accumulation of other forces / factors.

However, the use of this is to control your game a bit and keep it playable. It helps make sure projectiles remain visible and that the possibility for tunnelling can be reduced/controlled.