Grazing particles and sound

This commit is contained in:
Marco 2025-07-03 15:18:51 +02:00
commit 847d33ad4e
14 changed files with 246 additions and 134 deletions

View file

@ -73,7 +73,7 @@ public partial class Bullet3D : Area3D, IBullet
public override void _Ready()
{
_grazeSound = GetNodeOrNull<AudioStreamPlayer3D>("AudioStreamPlayer");
_grazeSound = GetNodeOrNull<AudioStreamPlayer3D>("GrazeSound");
_grazeParticles = GetNodeOrNull<GpuParticles3D>("GrazeParticles");
_collisionShape = GetNode<CollisionShape3D>("CollisionShape");
@ -101,6 +101,9 @@ public partial class Bullet3D : Area3D, IBullet
{
sphere.Radius = bulletInfo.OriginalBulletResource.BulletSize;
}
IsGrazed = false;
IsFrozen = false;
// Need to clone them here
// _modifiers = _bulletInfo.TimeModifiers.Select(x => x.MakeClone()).ToList();