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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Brick Extending Curvy to make a Hallway editor. JacobSL 3 85 10-13-2021, 05:09 PM
Last Post: _Aka_
  What is the performance of Curvy in iOS/Android ? codehawk64 5 569 09-01-2021, 10:30 AM
Last Post: _Aka_
  Curvy 7.1.5 is live _Aka_ 0 176 08-20-2021, 03:40 PM
Last Post: _Aka_
  Curvy Spline can't export connection? Yang Yi 1 304 07-31-2021, 03:09 PM
Last Post: _Aka_

Forum Jump: