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.

Author
Message
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 26th May 2003 20:12
I`m trying to get an object to rotate, in one axis, for each click of the mouse wheel ?

any ideas ??
I`ve been trying, but it not working..........
Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 26th May 2003 20:56
Posting your current code might help us help you quicker.

I hear and I forget. I see and I remember. I do and I understand.
comic book guy
23
Years of Service
User Offline
Joined: 21st Apr 2003
Location:
Posted: 26th May 2003 21:45
do you mean somthing like this?
hope it helps.
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 26th May 2003 21:59
ok, heres some whipped-up code, its not what I`m using in the main prog, the only real difference is the object rotation, which works, so thats not the question...

this NEARLY works...
what happens is, the mouse wheel will work one way in the code, but not the other,, but if you swap the mousemovez dec & inc line around, the mouse wheel works the other way, but I cant get it to work BOTH ways ??

any ideas ?

comic book guy
23
Years of Service
User Offline
Joined: 21st Apr 2003
Location:
Posted: 26th May 2003 22:20
added one line

mousemovez returns the difference between the new and the old position.
so you need the old position first z#=mousemovez()
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 26th May 2003 22:24
Ok, thanks all!

got it sorted, which now leads to another problem!

but I`ll try to sort that one myself! lol

Login to post a reply

Server time is: 2026-07-11 19:05:36
Your offset time is: 2026-07-11 19:05:36