Controling models with mouse

Share your ZGE-development tips and techniques here!

Moderator: Moderators

Post Reply
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Controling models with mouse

Post by turshija »

Since VilleK added centerMouse() command in ZGE, we can finally make our games use Mouse for controlling (moving, rotating, scaling...) ...
I have attached a file (.exe and .zgeproj) that shows one simple cube rotation using mouse ... :)
hope you can find it useful ... :)
Enjoy
Boris
Attachments
center mouse.zip
(48.92 KiB) Downloaded 593 times
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

object placement in engine, level editor ? !?

Post by jph_wacheski »

Thanks Boris, I did find that usefull., I made a ver. with a more direct conection to the values,. and added to it a bit,. looks like the beginings of a level editor to me.

LMB to rotate
RMB to scale
Z key to position ( Hay ville, why no MMB support? and scroll wheels too! )
Attachments
centerMouse_JPHtest.zgeproj
example file,.
(1.69 KiB) Downloaded 654 times
iterationGAMES.com
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Re: object placement in engine, level editor ? !?

Post by turshija »

I'm glad you did found it useful ... 8)
jph_wacheski wrote: Hay ville, why no MMB support? and scroll wheels too!


yeah, I wanted to say that in Feature request too, because I wanted to add camera zoom in, zoom out on scrool ... :)
but I don't know how hard is to implement that in ZGE ...
Post Reply