Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move spline attached to gameobject.
#3
(01-24-2018, 12:23 PM)_Aka_ Wrote: If you set the Curvy Generator also as a child of the crane, your will get the behavior you expect.

The reason behind the behavior you are facing is that Curvy Generator uses the local positions of the input splines. So when you move the crane, the world position of the control points changes, but their local positions stay the same, thus the generated mesh stays the same.
When the input splines and the generator have the same parent, or even better, the spline is a child of the input spline module, like in the generator's "Shape Extrusion" template, the issue does not appear because moving/rotating the generator will also move/rotate the generated mesh.

Does my answer indeed fix your issue?

Yes! Thank you!

Is there a way to make this more performant? When animating this in unity there's lagg when playing this in the editor. And this is just two points being animated. The lagg stops when turning the generator off.

In play mode it laggs behind a bit. When the animation resets it resets one frame later.
Reply


Messages In This Thread
Move spline attached to gameobject. - by Juwdah - 01-24-2018, 11:41 AM
RE: Move spline attached to gameobject. - by Juwdah - 01-24-2018, 01:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Issue Leading to Unity Freeze Pankaj09 1 137 08-24-2026, 11:28 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,028 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,421 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 983 11-13-2025, 11:32 AM
Last Post: _Aka_

Forum Jump: