2D Toolkit Forum

2D Toolkit => Support => Topic started by: vinnie035 on July 09, 2014, 02:33:12 pm

Title: When should I update my custom Advanced Colliders?
Post by: vinnie035 on July 09, 2014, 02:33:12 pm
Hi,

I'm trying to use your advanced colliders system and it works very well. But I'd like to know what is the best strategy to update them at runtime. Should I do that in the regular Update() loop, or would it be more suited to do it during LateUpdate() to get in sync with the spriteAnimator or even in a FixedUpdate() to match the physics?

Title: Re: When should I update my custom Advanced Colliders?
Post by: unikronsoftware on July 12, 2014, 09:52:11 pm
Fixed update would be best to match physics. You could roll your own sprite animator that animates in fixed update too to keep it in sync?