PDA

View Full Version : Simple compass (new method)

arty-fishL
09-04-2011, 12:30 PM
Previously I posted a compass (http://www.alice.org/community/showthread.php?t=4480&highlight=compass). This used dummies etc. I have come up with a new much better method.

This method uses no dummies or anything, just trigonometry.

It does use a dummy at the camera, but that is only because the camera returns incorrect values, if used on another object other than the camera it would require no dummies or anything else.

This points to an objective (the crate) - but it could easily be changed to point north (just put an objective far away and call it north).

In the attached exemplar world use the arrow keys to move/turn. You can move the crate by dragging it with the mouse.

Anyway, for those of you interested - here is a (very rough) diagram:
http://img233.imageshack.us/img233/8016/compassmethod2.png

Mr Kidnapper
09-15-2011, 01:03 AM
Huh. I can use this to make a radar.

room14
09-15-2011, 02:05 AM
Previously I posted a compass (http://www.alice.org/community/showthread.php?t=4480&highlight=compass). This used dummies etc. I have come up with a new much better method.

This method uses no dummies or anything, just trigonometry.

It does use a dummy at the camera, but that is only because the camera returns incorrect values, if used on another object other than the camera it would require no dummies or anything else.

This points to an objective (the crate) - but it could easily be changed to point north (just put an objective far away and call it north).

In the attached exemplar world use the arrow keys to move/turn. You can move the crate by dragging it with the mouse.

Anyway, for those of you interested - here is a (very rough) diagram:
http://img233.imageshack.us/img233/8016/compassmethod2.png