Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

In a 2D game, what is best practice to use. Rigidbody2d or collisionboxes on moving enemies?

$
0
0
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!

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>