• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

I think a horizontal cam movemnt can be made with the mouse SCROLL (read)

Status
Not open for further replies.
Level 21
Joined
Apr 8, 2017
Messages
1,530
file.php




Examples
x = current camera angle

d = last camera angle




IF
"x" HIGHER THAN "d"
THEN
Rotate cam to the left


IF
"x" LOWER THAN "d"
THEN
Rotate cam to the right
 
A sentence or two can go a long way to describe the help you need. If this is about detecting scrolling then do these comparisons you mentioned on a .03125 interval. If the Angle of attack is lower then you scrolled down, otherwise it's up. You can then change the direction of what you want to move based on the scroll direction.
 
Level 9
Joined
Jul 30, 2018
Messages
445
I don't think there is a native to get the "value" of the mouse scroll? Haven't looked into the mouse scroll that deeply, but my gut feeling is telling it's pretty much hard-coded for the default zoom function.
 
Status
Not open for further replies.
Top