Hi,
The difference in the position returned by Interpolate and InterpolateVolume does not seem to be caused by a mistake in your code, but is probably an issue in Curvy itself. I will take a deeper look at this soon.
Meanwhile, some remarks:
- you can optimize your code by computing p, up, and fwd only in the else section of your if. In your current code, when crossTfPosition != 0 you end up computing these vectors twice, once through the spline and then through the volume
- was there any reason that made you code your own object placing code instead of using a Volume Spots CG module?
Have a nice day and happy new year
The difference in the position returned by Interpolate and InterpolateVolume does not seem to be caused by a mistake in your code, but is probably an issue in Curvy itself. I will take a deeper look at this soon.
Meanwhile, some remarks:
- you can optimize your code by computing p, up, and fwd only in the else section of your if. In your current code, when crossTfPosition != 0 you end up computing these vectors twice, once through the spline and then through the volume
- was there any reason that made you code your own object placing code instead of using a Volume Spots CG module?
Have a nice day and happy new year
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.