draw weapon sight cone

BlitzMax Forums/BlitzMax Programming/draw weapon sight cone

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The coordinate of a point which 65 degrees away and a range of 60 units away goes something like this. Assuming that your person with the gun is at PersonX,PersonY :

Angle=65
Range=60
X = (Cos(Angle)*Range) + PersonX
Y = (Sin(Angle)*Range) + PersonY

Again, this is working with the 0 angle being right, not up, consistent with your previous question.