Hello Guest

Author Topic: When should I update my custom Advanced Colliders?  (Read 4253 times)

vinnie035

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
When should I update my custom Advanced Colliders?
« 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?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: When should I update my custom Advanced Colliders?
« Reply #1 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?