SRL Archive - Research & Development Lounge

perfectnorth2


Waddo

2008-05-16 14:01:57

this is the best perfect north function i have seen
and it works fast

best times
1217 ms
1123 ms
1138 ms
1139 ms

times
1139 ms
1607 ms
1701 ms
1139 ms


there is but 1 problem
you need to be able to the bottom right corner of a biulding

well here it is

Naum

2008-05-16 14:41:48

Ahem:

For 0 to 3 do
MakeCompass('N')
Wait(Random(20))

^ :Rolleyes:

TViYH

2008-05-16 15:05:54

What's the point of for 0 to 3?

mixster

2008-05-16 15:29:06

Repeating it makes it more likely to be true north and will take a look at the function in a minute Waddo, but anything over 250ms is generally too slow to be useful and the being near a building will be a draw back as the main time you need true north is when walking in places where there are little distinguishable minimap parts that you can use :(

Waddo

2008-05-16 15:36:15

well not realya biulding just a right angle

but its prety good make compas north never actually moves if is close to north
aand never gets rite on

mixster

2008-05-17 07:52:18

Checked it out and it really would be too location specific to use as I said before that true north is most useful when walking long distances :)