Pyroglyph,
@Pyroglyph@lemmy.world avatar

The way I do it would work well. Treat such vectors as two separate components. Not as X and Y, but Direction and Magnitude. No matter how many ways you can find to break the input, as long as you clamp the magnitude you’ll never go faster than intended! This also conveniently solves the √2 problem when moving diagonally.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • gamedev@lemmy.blahaj.zone
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • tacticalgear
  • GTA5RPClips
  • JUstTest
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • megavids
  • lostlight
  • All magazines