Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How can I make that the player jump

Author
Message
Darckbaston
13
Years of Service
User Offline
Joined: 28th Apr 2011
Location: Argentina - Mendoza
Posted: 29th Apr 2011 04:44
Hello, I´m doing a FPS game with Dark GDK in C++ (I´m trying to do!).
My point is how can I make that the player jump??

I think that I can use dbMoveCameraUp(), but I don´t know more than that! So someone have any idea of how do that or some code for that?

Thanks for read.

PD: I´m sorry for my bad english! I´m from Argentina and my english is very bad!
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 29th Apr 2011 19:41
With dbMoveCameraUp() the "Up" is relative to the camera, not space. If you use it, when you are looking down, the "Up" is not straight up but it's a little foreward (I hope that makes sense to you). Try using dbPositionCamera() for jumping.

If you really want to use dbMoveCameraUp(), you will have to adjust the pitch and roll of the camera to be 0 before moving the camera "up".

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-11-19 10:20:21
Your offset time is: 2024-11-19 10:20:21