Hey there,
I was wondering if someone know a way to optimize projectile motion ?
I have 2d sprites moving at their target in my physic delta.
Once arrived, they deal damage.
I have noticed that passed 50-60 projectiles, the game in debug mode lags quite a lot.
This is what I use for the moving of the projectiles :
global_position = global_position.move_toward(target.global_position, 8)
look_at(target.global_position)
Anyone knows a way to optimise it ?
I looked into mesh, but my projectiles are different from each others, up to 6 different at once.
I read that mesh is only good pass 500 unit
thank you for your input :)