Add CScriptActor

Former-commit-id: febfd1faae
This commit is contained in:
2022-11-04 01:25:39 -04:00
parent dc04591f0d
commit 9cece32038
19 changed files with 398 additions and 48 deletions

View File

@@ -147,6 +147,15 @@ inline CVector3f operator+(const CVector3f& lhs, const CVector3f& rhs) {
float z = lhs.GetZ() + rhs.GetZ();
return CVector3f(x, y, z);
}
// TODO real?
inline CVector3f operator*(const CVector3f& lhs, const CVector3f& rhs) {
float x = lhs.GetX() * rhs.GetX();
float y = lhs.GetY() * rhs.GetY();
float z = lhs.GetZ() * rhs.GetZ();
return CVector3f(x, y, z);
}
inline CVector3f operator*(const CVector3f& vec, const float f) {
float x = vec.GetX() * f;
float y = vec.GetY() * f;