interact + pickuo

This commit is contained in:
Milxnor
2023-03-11 09:24:00 -05:00
parent 59c338c401
commit 07950d84a2
33 changed files with 663 additions and 150 deletions

View File

@@ -6,4 +6,34 @@ public:
float X;
float Y;
float Z;
FVector operator+(const FVector& A)
{
return FVector{ this->X + A.X, this->Y + A.Y, this->Z + A.Z };
}
FVector operator-(const FVector& A)
{
return FVector{ this->X - A.X, this->Y - A.Y, this->Z - A.Z };
}
FVector operator*(const float A)
{
return FVector{ this->X * A, this->Y * A, this->Z * A };
}
bool operator==(const FVector& A)
{
return X == A.X && Y == A.Y && Z == A.Z;
}
void operator+=(const FVector& A)
{
*this = *this + A;
}
void operator-=(const FVector& A)
{
*this = *this - A;
}
};