sin and cos

BlitzPlus Forums/BlitzPlus Programming/sin and cos

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.

;left/right
		If KeyDown(203) Then carangle = carangle - 2
		If KeyDown(205) Then carangle = carangle + 2
		If carangle < 0 Then carangle = 359
		If carangle > 359 Then carangle = 0


Are you sure? carangle -2 could be like -2. The correct value should then be 358. +2 and +358, and one single modulo.. :P