I am building a 2d platform game. it has 1 character and lots of enemies. my char has a rigidbody2d and my level, collectibles and enemies all have 2d boxcolliders.
For now my enemies move around using the transform of 2d colliders. The reason for this is that i red somewere that rigidbodys are heavy on the cpu of mobile devices because of the physics, wich makes sence. just recently i found out that using 2dcolliders that move around is just as heavy because the graph needs to rerender(or something like that, i dont fully understood what they ment). I can't find the sites were i found this information.
All this left me verry confused as what to use as best practice. and i have searched around the web for this but no conclusive answers. I hope you guys can shed some light on this.
Thank you in advance!
↧