|
|
I'm trying to master converting a vector to an angle in 3D with no luck
(2D sure, I got that).
I tried two different formulas with varying degrees of not success.
In the code below, the secret to my success will be the VtoA macro.
The result should be, the Cyan sphere, whose position is generated from
the VtoA macro, should be locked in the center of the screen behind the
Red sphere, which is locked to the center of the screen, because it is
look_at. The current odd return from VtoA is the closest I can get.
This works good if I move from 0 in only one axis at a time.
Help?
--
dik
Post a reply to this message
Attachments:
Download 'test.inc.txt' (2 KB)
Download 'animtest.ini.txt' (1 KB)
|
|