fix EGG::Matrix34f Copy assignment

This commit is contained in:
elijah-thomas774
2025-03-20 22:05:01 -04:00
parent 5a84a6248a
commit e2c2ec6c2d
2 changed files with 8 additions and 4 deletions
+5
View File
@@ -24,6 +24,11 @@ struct Matrix34f {
return arr[i];
}
Matrix34f &operator=(const Matrix34f &other) {
copyFrom(other);
return *this;
}
void rotateBaseX(Vector3f &, Matrix34f &);
void rotateVectorChange(Vector3f &, Vector3f &, Matrix34f &);
void inverseTo(Matrix34f &to) const;
+3 -4
View File
@@ -52,10 +52,9 @@ int dAcOPoolCock_c::actorExecute() {
position += velocity;
position += mStts.mCcMove;
updateMatrix();
mMtx_c mdl1Transform;
mMtx_c mdl2Transform;
mdl1Transform = mWorldMtx;
mdl2Transform = mWorldMtx;
mMtx_c mdl1Transform(mWorldMtx);
mMtx_c mdl2Transform(mWorldMtx);
mMtx_c tmp1;
mMtx_c tmp2;