3D Explosions

This commit is contained in:
Marco 2025-06-20 11:28:18 +02:00
commit ad63d2ff43
20 changed files with 207 additions and 19 deletions

View file

@ -65,12 +65,10 @@ public partial class Destructible3D : StaticBody3D, IDestructible
private void CreateExplosion()
{
if (ExplosionData == null) return;
var explosion = PoolingManager.Instance.SpawnBullet<Bullet3D>(ExplosionData);
explosion.GlobalPosition = this.GlobalPosition;
explosion.Speed = 0;
explosion.Initialize(ExplosionData.MakeBullet(new Vector2(this.GlobalPosition.X, this.GlobalPosition.Y)));