Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (TipmyPip, AndrewAMD, Quad, aliswee, degenerate_762), 970 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Spherical first person cam movement (for planets) #462027
09/05/16 00:47
09/05/16 00:47
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
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...

Re: Spherical first person cam movement (for planets) [Re: Matt_Aufderheide] #462030
09/05/16 10:00
09/05/16 10:00
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
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?

Last edited by Reconnoiter; 09/05/16 10:04.
Re: Spherical first person cam movement (for planets) [Re: Reconnoiter] #462031
09/05/16 11:56
09/05/16 11:56
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
I dont see the problem changing the entity tilt angle according to the normals on the planet and its center vector

Re: Spherical first person cam movement (for planets) [Re: Ch40zzC0d3r] #462032
09/05/16 13:37
09/05/16 13:37
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hey! Take a look at this: Walking on walls -- alignToVec by JulzMighty

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Spherical first person cam movement (for planets) [Re: 3run] #462035
09/05/16 15:11
09/05/16 15:11
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
Thanks, I try out that code

Re: Spherical first person cam movement (for planets) [Re: Matt_Aufderheide] #462044
09/05/16 16:33
09/05/16 16:33
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
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


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1