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.

AppGameKit Classic Chat / Free Flight Camera For Keyboard and Touch

Author
Message
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 28th Oct 2015 16:13 Edited at: 28th Oct 2015 16:19
Here are some functions for Free flight camera movement for keyboard and touch.
These functions use wrap angle and curve angle functions that I copied from the DBPro source which are
not in AGK. I have attached 2 files, Utilities.agc which has the curve and wrap functions plus a few others.
Camera.agc has the camera functions. Just add them to your project and include Camera.agc in the main file.
Then call these 2 functions in the loop.
FreeFlightCameraUsingMouseAndArrowKeys( 1, 6.0 )
FreeFlightCameraUsingTouch( 1, 6.0 )
The coffee is lovely dark and deep,and I have code to write before I sleep.

Attachments

Login to view attachments
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 28th Oct 2015 16:24
Thanks for sharing, i'll test them when I finish work.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 28th Oct 2015 17:05
Cool. Some nice little functions there. Thanks.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign

Login to post a reply

Server time is: 2024-11-25 15:41:34
Your offset time is: 2024-11-25 15:41:34