Problem: Given a point and an angle, draw a imaginary line and place many points equidistantly from each other on the line (i.e. 30 pixels apart).
So, I’m working on my entry for GiTD 28 and I’ve hit a small roadblock. In all previous games I’ve just spawned a bullet, set its velocity, and hit-tested it until it was removed. In this game I want to be able to get the angle of a turret, and draw an (imaginary) line, place a ton of points along the line, and then test those. I think this is called ray tracing, correct?
Anyways, here’s what I want to do in picture form:



I’m in Geometry right now so ELI9thGrader would be nice. I’m just not too sure about the math, I’m assuming I’ll have to do some vector math right?
Thanks!