Hi, it's me again, sorry, but I have encountered something really odd that I don't know how to solve. When I attach more than one controller to a spline things break when I press play.
I have an empty as a parent for all the objects(3d objects) I want to move, and on the empty, I have the controller script. This works as long as there are only one controller on the spline. When I add more parent empties to the spline this happens:
1. Some the the children to the empties gets stuck and refuses to move along spline. It's always the same children.
2. The position the empties have on the spline when I press start is not the same as in edit mode. Their offset to each other changes.
The spline they move on is an open spline with its first control point moving along a second spline.
(12-28-2019, 10:35 PM)Lupp_ Wrote: Only the scene file, nothing else?
If there is anything else you should include for the scene to work, please do. The goal is for me to reproduce the scenario you described. I will take a look at this monday
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Hi,
Sorry I couldn't answer on Monday.
I was not able to reproduce the issue. I attached to this post a zip. It contains:
your scene test.unity as a reference
Scene 1 and Scene 2, which are modified versions of your scene
a Cube prefab, used in Scene 1 and Scene 2
Your scene uses prefabs and scripts that are not included in your zip. So to be able to test, I made two scenes:
Scene 1 is the same than test, except that I removed the gameobjects that are instances of a missing prefab, and replaced the needed ones of them with instances of the Cube prefab.
Scene 2 is the same than Scene 1, expect that I removed all objects that are not either splines or controllers. This was to get ride of errors due to missing scripts
In both scenes I could not reproduce the issue.
What I suggest you is to:
Test with scene 2
If you could reproduce the bug, let me know.
If you could not, this means that the issue comes from one of the objects that are in your test scene but not in Scene 2. Gradually remove objects from test until you find the culprit.
That's it for now.
Happy new year
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
I tried your scene 2 and it looks like it worked so I tried to add my objects. It broke the same way.
I've attached all I think you need to recreate this. I've saved your scene with my modifications. Just unzip these to the project root and it should look like it does for me.
01-01-2020, 01:20 AM (This post was last modified: 01-01-2020, 01:22 AM by _Aka_.)
The issue happens only for objects using the "RetopoGroup5" mesh, which get replaced/renamed by a mesh called "Combined mesh (root: scene)". I don't know what is happening in the project that makes this specific mesh to change, but I really don't believe it is related to Curvy Splines.
I tried to remove the objects using that mesh (obj6 instances) then recreating them and it seems to work.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.