Posted By: Matt_Aufderheide
Spherical first person cam movement (for planets) - 09/05/16 00:47
I've never been able to get a robust spherical movement function to allow you to walk around the surface of a planet. It always has problems, and the examples I see on the web basically use methods I'm not sure work in Lite_C... that is, they often end up with a lookat matrix and such.. which isn't much use(as far as I know) when you have to set plan/tilt/ roll to get the camera to work in A8.
It would be nice if you could just set an up vector... and rotate around that...
Posted By: Reconnoiter
Re: Spherical first person cam movement (for planets) - 09/05/16 10:00
Hi,
You mean like ang_rotate? You can also try ang_for_matrix (never used that one though so maybe I am saying something stupid here and it is more for directx-related stuff).
Or did I misunderstand and you have problems with gravity?
Posted By: Ch40zzC0d3r
Re: Spherical first person cam movement (for planets) - 09/05/16 11:56
I dont see the problem changing the entity tilt angle according to the normals on the planet and its center vector
Posted By: 3run
Re: Spherical first person cam movement (for planets) - 09/05/16 13:37
Posted By: Matt_Aufderheide
Re: Spherical first person cam movement (for planets) - 09/05/16 15:11
Thanks, I try out that code
Posted By: Matt_Aufderheide
Re: Spherical first person cam movement (for planets) - 09/05/16 16:33
Ok guys, ang_for_axis worked for me.. thanks.. never saw that function till now...finally I have robust movement on the planet surface.. been bugging me for years