Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple 2D vector graphics part 2: moving in the direction of an angle
#2
Ugh! you make it W A Y too complicated! Sorry I got to say.

dx = change along x axis ie xnew = xold + dx
dy = change along y axis ie ynew = yold + dy

dx = speed * cos(directionRadians)
dy = speed * sin(directionRadians)
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: simple 2D vector graphics part 2: moving in the direction of an angle - by bplus - 10-28-2022, 09:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Halloween Game - Part 1 Unseen Machine 24 2,553 10-15-2025, 07:11 PM
Last Post: Unseen Machine
  Angle, Vector, Radian, and Distance Library TerryRitchie 11 2,738 03-31-2025, 10:16 PM
Last Post: Dragoncat
  SVG graphics demos James D Jarvis 4 901 03-25-2025, 12:41 AM
Last Post: James D Jarvis
  Endian conversion...Part 2, The Endian Is Nigh! tantalus 0 395 03-22-2025, 09:43 PM
Last Post: tantalus
  Got so drunk for St. Patricks Day, I programmed something in graphics... Pete 42 8,679 08-04-2024, 04:05 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)