Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Movement on Curvy with MouseWheel
#1
hi,
I'm trying to implement a manual movement of the camera along CurvySpline.
I'm already using a provided script with the package "MotorController.cs", which works great btw! Now I'd like to be able to control the movement using a MouseWheel.
Is this possible? Scrolling wheel backward would move the camera forward and scrolling forward would initiate the movement in the opposite direction. When the scrolling stops, the camera would also stop.
I tried duplicating "MotorController.cs" and substituting

Code:
float axis = Input.GetAxis("Vertical");

with 

Code:
float axis = Input.GetAxis("Mouse ScrollWheel");

but that doesn't seem to have any effect. Am I missing something or is there any other solution?

Thank you
Reply
#2
This will help https://docs.unity3d.com/ScriptReference...Delta.html
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Smile Simple splines movement shills 3 568 02-26-2025, 09:40 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 5 715 10-29-2024, 10:19 AM
Last Post: _Aka_
  Left-right movement, and spline follow shihaya 3 415 07-12-2024, 12:50 PM
Last Post: _Aka_
  Invisible Gizmos In Latest Curvy Splines orrenravid1 1 269 06-11-2024, 07:36 AM
Last Post: _Aka_

Forum Jump: