Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting started with API?
#4
(04-09-2018, 05:35 PM)mgstauff Wrote: do I take the returned CurvySplineSegment and then set its localPosition and localRotation members to get them where I want?
Yes, that's how it works. There is an Add(params Vector3[] positions) that you can use to set the position, but there is no equivalent to set the rotation too.

For code examples, except for some snippets in the documentation or in this forum, all the provided code examples are in the Curvy Examples\Scripts folder. InfiniteTrack.cs has code that creates a spline at runtime.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Getting started with API? - by mgstauff - 04-08-2018, 12:10 AM
RE: Getting started with API? - by _Aka_ - 04-08-2018, 10:33 AM
RE: Getting started with API? - by mgstauff - 04-09-2018, 05:35 PM
RE: Getting started with API? - by _Aka_ - 04-09-2018, 06:33 PM
RE: Getting started with API? - by mgstauff - 04-12-2018, 12:20 AM

Forum Jump: