Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Volume Spots and Distance from generator
#1
Hi,

After placing volume spots via generator, is it possible to read the distance (or TF or whatever) of each spot placed? This via API.

Thanks!
Reply
#2
Hi
The CGSpot struct does not store the tf or distance of the spot stored in it. It does store its position, which you can use in association with the input spline as follows: spline.GetNearestPointTF(spot.position)
Did this help?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Thanks, that worked, but other problems seem to arise. The tf/distance of the objects on each spline should all be the same, and they are not. They differ in, like, several percentages.
Reply
#4
TF (and F) is not always proportional to distance. You can find more about this in here: https://curvyeditor.com/documentation/splines/start#units

If you are using the API, unfortunatly CGPath.F is a relative distance and not an F value. This will be fixed in Curvy 8

Did this help?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Well, all the splines are identical (produced from the same prefab), except for position and rotation. And the generators are the same, too (except for position and rotation). So in theory, the placement of the objects along each spline should be identical, no? And if I use GeNearestPointTF(), shouldn't all corresponding objects on each spline have the same result? They didn't (unless I screwed up somewhere). For example, the last objects in each spline differed by a few percent.
Reply
#6
(09-16-2021, 04:44 PM)topquarkone Wrote: Well, all the splines are identical (produced from the same prefab), except for position and rotation. And the generators are the same, too (except for position and rotation). So in theory, the placement of the objects along each spline should be identical, no?
You are right, my bad

(09-16-2021, 04:44 PM)topquarkone Wrote: And if I use GeNearestPointTF(), shouldn't all corresponding objects on each spline have the same result? They didn't (unless I screwed up somewhere). For example, the last objects in each spline differed by a few percent.
I can't find an explanation. Can you send a reproduction case please so I can see what's happening?
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
  I have to refresh generator manualy :( GameDeveloperek4123 4 12 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 3 08-30-2024, 09:19 AM
Last Post: _Aka_
  How can I set the generator to stop updating? emerrryjones 1 10 07-26-2024, 10:07 AM
Last Post: _Aka_
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_

Forum Jump: