I dont mean to copy Dameria's idea of a

compass, I just wanted to post this for anybody who wants to know how to make one easily.

I didnt understand Dameria's way, so I thought up my own way of doing the

compass. This is completely not based on Dameria's version, but he helped my work out what was wrong with arcsin, so thanks.

This is a

compass which points north as you turn or move with the arrow keys. You can also make it point towards an objective.

----

To do this in your own world place three dummies at the camera, move two of them forward equal distances and one backward the same distance. The distance doesnt matter, just as long as all the distances are equal, I recommend 20 metres.

Label one of the front ones

*north* and the other front one

*you* and label the back one

*south*. Make

*you* vehicled to the camera then copy all the code I have in my example world.

----

__This is how it works:__
This is a diagram of the points

you could be facing any way, this is just an example.

The points are even distances from the camera, so a circle can be drawn due to the equal radii.

From this we can add in known measurements, like the radius and distance from you to north.

Then we can draw a line from the centre to the middle of the black chord above. This will form a right angled triangle.

This allows us to use a simple form of trigonometry to calculate the angle in the right angled triangle; this can be doubled to get the overall angle, and therefore the final bearing.

To calculate x when we know the radius (r) and the chord length (c) we can do x=arcsin(c/2/r). Then we can calculate double x to get the bearing.

Then to get the turn percentage that Alice uses you can do bearing divided by 360, this will give a value between 0 and 1.

edit: version 1.1 - now should not really have a problem with it getting stuck at north and should not face a little bit off any more as it resets and calculates its position again every 200 calculations (which is enough), and its not really noticeable that much.

█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█

█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█

█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█

█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█

█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█

█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█

█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬