Hi Defold experts, I am new to Defold and Lua (moving from C#).
I am creating a game that will have 300-500 (est) bouncing bullets alive at a time.
Imagine an environment of walls and objects with players and enemies shooting machine gun of bullets that bounce.
Should I use physics to do the bounce for me? or should I better off handling the position manually?
Some other things to consider:
- Bullets may have different speed and life over distance traveled.
- I want to be able to control bullets life by number of bounces.
- Some bullets have homing capabilities on top of bouncing.
- I want to be able to control collision group at runtime because some bullets may acquire ability to penetrate through walls, or enemies can activate skill to evade certain bullets.
- This is a multiplayer game where bullets position have to be sync-ed across clients. I am using Nakama based on the tutorial available on Defold’s website.
In the previous game engine I implemented this by managing bullets behavior and position manually and didn’t have any performance issues. Any advice on this would be greatly appreciated.
Thank you!