summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorinspectredc <78732756+inspectredc@users.noreply.github.com>2025-01-18 16:19:33 +0000
committerGitHub <noreply@github.com>2025-01-18 09:19:33 -0700
commit51d2f2ec97f6de209ba1696257d0ebfc2bbe37ed (patch)
tree470a2a96a344790f40cb7cfce574caff66254867 /src/engine
parent8c46368d5d93ad278c124ffc6446ab691dff8082 (diff)
Fix mac building (#157)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/CoreMath.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/CoreMath.h b/src/engine/CoreMath.h
index 551d8083b..c5f3211f4 100644
--- a/src/engine/CoreMath.h
+++ b/src/engine/CoreMath.h
@@ -19,6 +19,9 @@ struct FVector {
z = other.z;
return *this;
}
+
+ FVector() : x(0), y(0), z(0) {}
+ FVector(float x, float y, float z) : x(x), y(y), z(z) {}
};
/**
@@ -35,6 +38,9 @@ struct FVector2D {
z = other.z;
return *this;
}
+
+ FVector2D() : x(0), z(0) {}
+ FVector2D(float x, float z) : x(x), z(z) {}
};
// Sets integer X Z coordinates
@@ -62,6 +68,9 @@ struct FRotation {
roll = other.roll;
return *this;
}
+
+ FRotation() : pitch(0), yaw(0), roll(0) {}
+ FRotation(float p, float y, float r) : pitch(p), yaw(y), roll(r) {}
};
/**