fix SMatrix set parameters

This commit is contained in:
shibbo 2024-10-16 21:03:58 -04:00
parent 1a1d77a949
commit a12a084cd9
3 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,9 @@ namespace JGeometry {
template<typename T> template<typename T>
struct SMatrix34C { struct SMatrix34C {
public: public:
void set(const MtxPtr);
typedef f32 ArrType[4];
void set(const ArrType*);
void set(const SMatrix34C<T> &rSrc); void set(const SMatrix34C<T> &rSrc);
void set(T rxx, T ryx, T rzx, T tx, T rxy, T ryy, T rzy, T ty, T rxz, T ryz, T rzz, T tz); void set(T rxx, T ryx, T rzx, T tx, T rxy, T ryy, T rzy, T ty, T rxz, T ryz, T rzz, T tz);

View File

@ -602,4 +602,4 @@ namespace NrvMapObjActor {
MapObjActor* actor = reinterpret_cast<MapObjActor*>(pSpine->mExecutor); MapObjActor* actor = reinterpret_cast<MapObjActor*>(pSpine->mExecutor);
actor->exeWait(); actor->exeWait();
} }
}; };

View File

@ -68,7 +68,7 @@ void SimpleMirrorObj::calcAndSetBaseMtx() {
MR::setMirrorReflectionInfoFromMtxYUp(reflectionPos); MR::setMirrorReflectionInfoFromMtxYUp(reflectionPos);
f32 z = reflectionPos.mMtx[2][3]; f32 z = reflectionPos.mMtx[2][3];
f32 y = reflectionPos.mMtx[1][3]; f32 y = reflectionPos.mMtx[1][3];
f32 x = reflectionPos.mMtx[0][3]; f32 x = reflectionPos.mMtx[0][3];
mPosition.set(x, y, z); mPosition.set(x, y, z);
MR::setBaseTRMtx(this, mMtx); MR::setBaseTRMtx(this, mMtx);
} }