This isn't that hard, I just felt like writing a blog on the subject.
You are going to need several things.
You need the point you are firing at, they point you are firing from, and trig.
Pseudo code written in java.
I'm using this code to calculate the trajectory that my lasers need to take on my ship on a case by case basis.
This allows all the bullets to converge into one point in space.
Leave a comment if you have any questions.
No comments:
Post a Comment