Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pitch and Speed

I'm having a play with Curvy and was hoping to control the pitch of the tracking object. Think of a paper plane floating down but it's nose not pointing down a the same time.

Also, can I alter the speed at points also, example being a plane speeding up and launching, flying, then slowing to land.


About the pitch: The Spline Controller script's inspector does not give you such fine control over the orientation of the object. But you can do so through coding. You can do that different ways. For example:
  • you can add a script that will run after the controller's script (see "Execution Order" in Unity's documentation) to modify the object's orientation according to your pitching logic
  • Modify the method called ComputeTargetPositionAndRotation in the relevant controller class (they all inherit from CurvyController) to include your pitching logic.
About the speed: Controllers have a Speed property that you can edit freely, either though the inspector or the API, so having your own script that updates the Speed each frame according to your constraints should do the work.

Any other questions?

Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Controler Speed from metadata Bryan Thatcher 1 2 5 hours ago
Last Post: _Aka_
  Change Speed on spline linkinballzpokemon 1 28 12-29-2021, 10:58 AM
Last Post: _Aka_
  Controller speed questions Lupp_ 6 1,863 01-20-2021, 09:20 PM
Last Post: _Aka_
Question Changing speed between ControlPoints funkd 5 2,469 10-02-2020, 12:36 PM
Last Post: _Aka_

Forum Jump: