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 / Zoom and pan i 3D

Author
Message
Max Tillberg
18
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 3rd Apr 2018 13:33
I wonder if somebody has written a function for dealing with pan and zoom on a mouse in 3D by using scroll weel and middle mouse button?
Sincerely,
Max Tillberg
Carharttguy
7
Years of Service
User Offline
Joined: 8th Jul 2016
Location: Belgium
Posted: 3rd Apr 2018 18:00
You could start from the 3D terrain example, that does panning. Zooming is super easy, as you can read the value of the scrollwheel via https://www.appgamekit.com/documentation/Reference/Input-Raw/GetRawMouseWheelDelta.htm
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 3rd Apr 2018 21:33

Login to post a reply

Server time is: 2024-04-20 12:18:07
Your offset time is: 2024-04-20 12:18:07