Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming a first-person player/camera to follow a Curvy Spline
#1
I'm interested in purchasing this spline tool, but I have a few questions to make sure this tool is a good fit. I am working on an interactive exhibit for a museum where two players race against each other on bikes through a terrain. Will Curvy allow me to move two first-person view cameras independently along a spline for split-screen gameplay?

Also, can I move these cameras along the spline in real-time through user input/scripting? I need to move these cameras using two particular scenarios. One, the simplest way, using arrow keys (forward/backward) to increment/decrement the Path Position. Two, more complicated, but ultimately the way I actually need to do it is to move the cameras dynamically along the path using an ever-changing range of values (coming in through Arduinos), 0 to 100 for instance, to simulate speed.

I know this is probably a pretty big question, but if anyone could just point me in the right direction, or if you have any insight or particular examples or tutorials that you've come across that address these questions, I would appreciate the help immensely! Thank you!
Reply
#2
Hi
This is doable using Curvy Splines:
You will probably need to use the Spline Controller component, which is one of the three available controllers.
This component allows to move an object along a spline. You can set the position and/or speed of the controller, both via editor/animator and API.
This tutorial shows how to do a simple setup of a controller:
https://www.youtube.com/watch?v=CPOfoIVbeCE

For more information, here is the user manual for the Controllers, followed by the API Reference of both SplineController, and the class it inherits from, CurvyController:
https://curvyeditor.com/documentation/controllers/start
https://api.curvyeditor.com/FluffyUnderware.Curvy.Controllers.SplineController.html
https://api.curvyeditor.com/FluffyUnderware.Curvy.Controllers.CurvyController.html

Feel free to ask me for more details.
I hope this helped. 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
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_

Forum Jump: