Uploaded September 2026 | Updated December 2026, 3 hours ago
Angle in equals angle out, but measured against what?
The normal. Once you have the arrow perpendicular to the surface, reflection is one formula that works at any angle. The mistake almost everyone makes is flipping vx or vy depending on which wall got hit. That works on a rectangle and dies the moment a surface is angled.
Game Shorts #2. One mechanic per video, then the full game in long form.
Next up: this plus AABB collision plus easing gets you Breakout.
#javascript #gamedev #coding #programming
Angle in equals angle out, but measured against what?
The normal. Once you have the arrow perpendicular to the surface, reflection is one formula that works at any angle. The mistake almost everyone makes is flipping vx or vy depending on which wall got hit. That works on a rectangle and dies the moment a surface is angled.
Game Shorts #2. One mechanic per video, then the full game in long form.
Next up: this plus AABB collision plus easing gets you Breakout.
#javascript #gamedev #coding #programming










