Added dynamic spawning and despawning of objects
This commit is contained in:
parent
adbb208436
commit
e0cf8d9755
23 changed files with 794 additions and 350 deletions
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using Godot;
|
||||
|
||||
public class Vector3Dec(decimal x, decimal y, decimal z)
|
||||
public readonly struct Vector3Dec(decimal x, decimal y, decimal z)
|
||||
{
|
||||
public static Vector3Dec Zero { get; } = new(0, 0, 0);
|
||||
|
||||
|
|
@ -14,6 +14,11 @@ public class Vector3Dec(decimal x, decimal y, decimal z)
|
|||
return new((double)X, (double)Y, (double)Z);
|
||||
}
|
||||
|
||||
public static Vector3Dec FromVector3(Vector3 vec)
|
||||
{
|
||||
return new((decimal)vec.X, (decimal)vec.Y, (decimal)vec.Z);
|
||||
}
|
||||
|
||||
public static Vector3Dec operator +(Vector3Dec vec1, Vector3Dec vec2)
|
||||
{
|
||||
return new(vec1.X + vec2.X, vec1.Y + vec2.Y, vec1.Z + vec2.Z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue