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

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.

Thanks.
Reply
#2
Hi,

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.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Spline Controller Animate - Don't understand the Speed and TimeScale properties GenericJoe 12 2,180 07-20-2018, 09:02 PM
Last Post: GenericJoe
  Extending the controller, changing speed HundredTai 4 964 06-07-2018, 06:04 PM
Last Post: _Aka_
  Movement speed mythstified 3 805 06-01-2018, 03:37 PM
Last Post: _Aka_
  Speed variable in Spline Controller eco_editor 1 555 05-02-2018, 10:47 AM
Last Post: _Aka_

Forum Jump: