Processing Foundation
How to rotate a sprite toward the direction of motion
p5.js
Coding Questions
quark
May 19, 2020, 4:37pm
6
Instead of that try
this.angle = atan2(this.lookAtY - this.y, this.lookAtX - this.x);
show post in topic
Related Topics
Topic
Replies
Views
Activity
How do I make a sprite rotate to face another sprite?
Coding Questions
3
413
June 30, 2020
Rotate and translate
Coding Questions
6
441
May 21, 2019
2d camera in processing
Project Guidance
3
542
November 24, 2021
Rotate an image when it's moving with "if"
Coding Questions
3
378
December 18, 2018
Rotating the sprite using mouse
Coding Questions
16
653
July 6, 2021