Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple controllers on one spline breaks stuff
#1
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.

What should I do?
Reply
#2
Can you please send me the scene?
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
Only the scene file, nothing else?
Reply
#4
(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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Not sure, it would be Playmaker but you have that. Please let me know if there is something else.
Reply
#6
I want add that I've tried making a new spline and replaced the controller scripts, but it doesn't help.
Reply
#7
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:
  1. Test with scene 2
  2. If you could reproduce the bug, let me know.
  3. 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


Attached Files
.zip   Lupp Controller Issue.zip (Size: 102.24 KB / Downloads: 1)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#8
Hi, happy new year.

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.

https://www.dropbox.com/s/75afqoehq6cqxe...s.zip?dl=0

https://www.dropbox.com/s/7wbkd3n3jsn8z0...s.zip?dl=0
Reply
#9
Hi,
I see the issue now.
Keep in mind that this forum is public, so if what you shared is private, please edit your post and remove the links
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#10
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 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
  Make GameObject Face towards Spline Path linkinballzpokemon 5 48 Yesterday, 08:27 PM
Last Post: _Aka_
  Question regarding Spline Generated Path linkinballzpokemon 9 285 07-01-2020, 06:10 PM
Last Post: _Aka_
  Converting spline collider hit point to spline position jh092 7 224 06-26-2020, 09:48 PM
Last Post: _Aka_
  Null reference when spline controller added runtime jh092 1 120 06-19-2020, 09:21 AM
Last Post: _Aka_

Forum Jump: