Skip to content Skip to sidebar Skip to footer
Showing posts with the label Trigonometry

Calculating Degrees Between 2 Points With Inverse Y Axis

I'm creating a simple 2D game in javascript/canvas. I need to figure out the angle of a certain… Read more Calculating Degrees Between 2 Points With Inverse Y Axis

Rotate Rectangle Around A Point

How would I get 4 points rotated a certain degrees around a pointer to form a rectangle? I can rota… Read more Rotate Rectangle Around A Point

Moving A Triangular Ship In A Canvas Game In Plain JS

I am trying to move a triangle in the direction which the triangle is rotated by. When I press the … Read more Moving A Triangular Ship In A Canvas Game In Plain JS