Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SplineController Delta after instantiate(Bug?)
#5
(11-22-2019, 04:44 PM)_Aka_ Wrote: There are some things in you explanation that I am not sure to understand properly, so I will in the following give a lot of information, some of it might not be usefull for you, but I think that the solution to your problem lies there:
  • ApplyDeltaTime is called automatically by Curvy at each unity update, and is called with the duration since last update as a parameter, so yoy don't need to call it manually to make things work
  • For that method to make the object move, the speed field should be different than zero
  • I think the easiest way to do what you want is to simply use the Position property. This way you spawn an object, set where it should be to achieve the staggering, and then let it be
Did this help?

I understand you don't need to call it, it was just initially after instantiation and i added a test with the space bar to see if it worked, it works when calling later after instantiation but not directly after instantiation.
Speed is set to 10 in the prefab and it move along the spline as expected by the controller.

Setting the position does work, i'll use that instead but it does seem like a bug if you get a chance to look at it.
Reply


Messages In This Thread
RE: SplineController Delta after instantiate(Bug?) - by Marc Mitchell - 11-26-2019, 08:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play() does not cause SplineController to produce expected behaviour ConCat 8 1,413 02-08-2026, 11:54 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,477 07-29-2025, 09:15 PM
Last Post: _Aka_
Wink In SplineController OnPositionReachedList Event is missing shimizu 2 1,820 02-07-2022, 12:47 PM
Last Post: shimizu
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 1,739 01-17-2022, 01:39 PM
Last Post: _Aka_

Forum Jump: