Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to tune/set constraints of a particle group from an obiActor during runtime
#5
(19-10-2021, 03:29 PM)Jschol Wrote: Here I noticed that the solverBatchOffsets returned an empty list when called in the void start()?

Actors are added to solvers in their Start() method. The order in which Unity calls Start, Awake, Update etc for different components is undefined by default. So if you have a script that accesses solver/actor data in Start() it might run before he actor has been added to the solver.

Either set your script execution order so that your script runs after ObiSolver/ObiActor, or wait one frame after Start. See:
https://docs.unity3d.com/Manual/ExecutionOrder.html
https://docs.unity3d.com/Manual/class-MonoManager.html
Reply


Messages In This Thread
RE: How to tune/set constraints of a particle group from an obiActor during runtime - by josemendez - 25-10-2021, 09:03 AM