Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SplineController Delta after instantiate(Bug?)
#3
(11-22-2019, 03:13 PM)_Aka_ Wrote: Hi
From reading your message, I don't see anything wrong in your steps, so I will need to test your project to find ou what is wrong. I will do that on Monday or Tuesday. I will keep you updated.
The issue appears only for one frame or does it stay for all the duration?

For the duration. So the following code I call ApplyDeltaTime(2); in the Start() function after instantiation but it starts at position 0, where i would have expected it to be progressed by 2 seconds into the path. Note that it works as expected if I then call ApplyDeltaTime(2); in the update function upon pressing a key, you can see the object progressed each time pressing the key(though i didn't add that code in the sample).

Code:
SplineController controllerPrefabInstance = GameObject.Instantiate<SplineController>(controllerPrefab);


controllerPrefabInstance.name = "ControllerDelta2";
controllerPrefabInstance.Spline = mainspline;
controllerPrefabInstance.ApplyDeltaTime(2);
Reply


Messages In This Thread
RE: SplineController Delta after instantiate(Bug?) - by Marc Mitchell - 11-22-2019, 03:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Wink In SplineController OnPositionReachedList Event is missing shimizu 2 13 02-07-2022, 12:47 PM
Last Post: shimizu
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 24 01-17-2022, 01:39 PM
Last Post: _Aka_
  SplineController slows down approaching connections jh092 5 2,542 08-07-2020, 03:56 PM
Last Post: _Aka_
  instantiate Spline Controller at runtime PretzelStudios 2 1,844 05-07-2020, 09:03 PM
Last Post: PretzelStudios

Forum Jump: