2D Toolkit Forum

2D Toolkit => Support => Topic started by: Evil-Dog on January 05, 2014, 11:36:30 pm

Title: Update 2dtoolkit in the physics update
Post by: Evil-Dog on January 05, 2014, 11:36:30 pm
Hi there, I'm working on a game that we'd need to make deterministic.
I ask this in a global state of confusion but from what I understand, I'd need to run the sprite system on a deterministic fashion using the physics update and not the render update.

Any thoughts on that?
Is that something that would be doable?
Thanks :D
Title: Re: Update 2dtoolkit in the physics update
Post by: unikronsoftware on January 06, 2014, 11:14:19 am
Ah. good old determinism in Unity :)
If you want to run the animation system (?) in physics update, just change animator Update -> FixedUpdate. That should be it really. You will need to use this together with script ordering to get more control over the whole pipeline.
Title: Re: Update 2dtoolkit in the physics update
Post by: Evil-Dog on January 06, 2014, 03:41:01 pm
Right yeah, so that's all I'd need, interesting.  Thanks!

And you do have some experience with determinism in Unity? good or bad? Care to share some thoughts on it? :)
Title: Re: Update 2dtoolkit in the physics update
Post by: unikronsoftware on January 07, 2014, 11:09:42 am
If you want 100% determinism in Unity, I've learnt to just DIY. Have one behaviour update and call the appropriate functions on all the relevant other behaviours manually.
Title: Re: Update 2dtoolkit in the physics update
Post by: Evil-Dog on January 07, 2014, 02:55:58 pm
That makes sense, thanks