Hello, I am having issues with static bodies that are added to the root of the scene through code causing lag when a character body collides with them.
The player can place down these turrets which for now are static bodies. (Though they will be changed later I'm just getting a placement system working.)
This is the code I use to get and place the turret.
Any ideas for what may cause the lag?