Capricorn laser done

This commit is contained in:
2023-09-05 00:30:05 -07:00
parent 5eaa5fc91e
commit c645c56fb8
11 changed files with 147 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
using Godot;
using System.Linq;
public partial class CapricornLaserShot : Projectile
{
public override void _PhysicsProcess(double delta)
{
var shots = GetChildren().OfType<RigidBody3D>();
shots.ElementAt(0).Translate(new Vector3(0, 0, Speed * -(float)delta));
shots.ElementAt(1).Translate(new Vector3(0, 0, Speed * (float)delta));
}
}