Files
GameJam2023/Player/Pisces/Attacks/ShotgunBullet.cs
2023-09-06 03:49:16 -07:00

14 lines
330 B
C#

using Godot;
using System.Linq;
public partial class ShotgunBullet : Projectile
{
public override void _PhysicsProcess(double delta)
{
var pellets = GetChildren().OfType<RigidBody3D>();
foreach (var pellet in pellets)
pellet.Translate(new Vector3(pellet.Rotation.Y, 0, Speed * -(float)delta));
}
}