Field of Vision

BlitzMax Forums/BlitzMax Beginners Area/Field of Vision

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.

I've been trying to make a field of vision Pie in my game, and I've gotten it working in previous versions, but its not working now, in the new version which is handling it completely different.

I'm trying to figure out if the below is the right code for the job...
			FoVCoord[Loop_Var, 0] = (X + 20) + Cos((FoVLeft + Loop_Var) - 90) * VisionLength[Loop_Var] 
			FoVCoord[Loop_Var, 1] = (Y + 20) + Sin((FoVLeft + Loop_Var) - 90) * VisionLength[Loop_Var]