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 .NET / Mouse Wheel Help

Author
Message
Ravencraft
13
Years of Service
User Offline
Joined: 3rd Oct 2011
Location: Under a Bridge
Posted: 12th Feb 2013 17:11
I've been working on moving the default camera using the mouse wheel. Moving the mouse wheel up is suppose to move the camera forward in the direction and angle that the camera is currently facing. The opposite occurs when the mouse wheel is scrolled down (zoom like affect).

Unless noted, I have all variables stored in a module. The underlined section is where I'm stumped.


Dim CurrentPosX = DarkGDK.Camera.DefaultCamera.CurrentPositionX
Dim CurrentPosY = DarkGDK.Camera.DefaultCamera.CurrentPositionY
Dim CurrentPosZ = DarkGDK.Camera.DefaultCamera.CurrentPositionZ

Xcangle = DarkGDK.Camera.DefaultCamera.CurrentAngleX
Ycangle = DarkGDK.Camera.DefaultCamera.CurrentAngleY
DarkGDK.Camera.DefaultCamera.PositionCurrent()
WheelUp = False
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 31st Mar 2013 13:19
Sorry but, why don't you just use MoveCamera?

Login to post a reply

Server time is: 2024-11-17 22:17:28
Your offset time is: 2024-11-17 22:17:28