OMG I found it!
https://qb64phoenix.com/forum/showthread...76#pid5876
And I did try again, it's not arbitrary where you can put 0 degrees... assuming if you want the Trig functions to work as they are.
https://qb64phoenix.com/forum/showthread...81#pid5881
You did seem extremely invested in all the code you had written and I can understand reluctance to redo everything.
Plus... vectors! and radians! and trig! oh my!
@TerryRitchie is reply #19 a help, moves yellow box in direction of mouse arrow using... damn Vx, Vy weren't normalized
normalize would be
Vx = Cos(MouseAngleDegrees) 'before I multiplied by 10
Vy = Sin(MouseAngleDegrees) ' before I multiplied by 10
That makes them <=1 and >= -1
EDIT: fixed in code above
https://qb64phoenix.com/forum/showthread...76#pid5876
And I did try again, it's not arbitrary where you can put 0 degrees... assuming if you want the Trig functions to work as they are.
https://qb64phoenix.com/forum/showthread...81#pid5881
You did seem extremely invested in all the code you had written and I can understand reluctance to redo everything.
Plus... vectors! and radians! and trig! oh my!
@TerryRitchie is reply #19 a help, moves yellow box in direction of mouse arrow using... damn Vx, Vy weren't normalized
normalize would be
Vx = Cos(MouseAngleDegrees) 'before I multiplied by 10
Vy = Sin(MouseAngleDegrees) ' before I multiplied by 10
That makes them <=1 and >= -1
EDIT: fixed in code above
b = b + ...