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)
b = b + ...
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



Users browsing this thread: 1 Guest(s)