mirror of
https://github.com/SMGCommunity/Petari.git
synced 2024-11-23 05:29:50 +00:00
fix SMatrix
set parameters
This commit is contained in:
parent
1a1d77a949
commit
a12a084cd9
@ -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);
|
||||||
|
|
||||||
|
@ -602,4 +602,4 @@ namespace NrvMapObjActor {
|
|||||||
MapObjActor* actor = reinterpret_cast<MapObjActor*>(pSpine->mExecutor);
|
MapObjActor* actor = reinterpret_cast<MapObjActor*>(pSpine->mExecutor);
|
||||||
actor->exeWait();
|
actor->exeWait();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user