faulty auto steering

Blitz3D Forums/Blitz3D Programming/faulty auto steering

Neochrome(Posted 2003) [#1]
its 2:13am in the morning, so i could be half a sleep,

BUt

PointEntity tSct\Sensor, ScouterPilots[tSct\AutoPilotProgramID] ; point to a pivot
		
cRa# = EntityYaw(tSct\Chassy)
sRa# = EntityYaw(tSct\Sensor)
			
trPrS# = Sgn(sRa# - cRa#) * .92
			
MoveScouter(tSct\Chassy, .05, trPrS#)
			
AppTitle Floor(sRa) + " - " + Floor(cRa) + " = " + Floor(sRa# - cRa#)
			


basically, i could be going about this whole way round, im basically having trouble with getting the steering between 120 - (-90) angles returned from entityyaw#, iv seen a thread before but cant find it.

How do i stop the -90 from happening? it appears there no 270-angle, just replace by -90 its no good for SGN

what can i do to stop this?


Neochrome(Posted 2003) [#2]
ok, i solved it!