1
Graphics / Velocity visualizer
« on: January 17, 2024, 07:36:27 pm »
I'm in the process of making a 2D platformer with SFML and want to make an arrow sprite attached at the center of the player sprite to show the vector of the player's current velocity. I'm able to get the origin at the center. Can anyone recommend the best way to rotate about a central axis while varying the size based on magnitude?