mirror of
https://github.com/SMGCommunity/Petari.git
synced 2026-11-10 12:51:40 -10:00
34 lines
932 B
C++
34 lines
932 B
C++
#pragma once
|
|
|
|
#include <JSystem/JGeometry/TMatrix.hpp>
|
|
#include <revolution/types.h>
|
|
|
|
class LiveActor;
|
|
|
|
class FixedPosition {
|
|
public:
|
|
FixedPosition(const LiveActor*, const char*, const TVec3f&, const TVec3f&);
|
|
FixedPosition(const LiveActor*, const TVec3f&, const TVec3f&);
|
|
FixedPosition(MtxPtr, const TVec3f&, const TVec3f&);
|
|
FixedPosition(const LiveActor*, const char*, const LiveActor*);
|
|
|
|
void init(MtxPtr, const TVec3f&, const TVec3f&);
|
|
void calc();
|
|
void setBaseMtx(MtxPtr);
|
|
void setLocalTrans(const TVec3f&);
|
|
void copyTrans(TVec3f* pTrans) const {
|
|
mMtx.getTrans(*pTrans);
|
|
}
|
|
|
|
void copyRotate(TVec3f* pRotate) const NO_INLINE {
|
|
mMtx.getEuler(*pRotate);
|
|
*pRotate = *pRotate * _180_PI;
|
|
}
|
|
|
|
/* 0x00 */ MtxPtr mBaseMtx;
|
|
/* 0x04 */ TVec3f mLocalTrans;
|
|
/* 0x10 */ TVec3f mLocalRotate;
|
|
/* 0x1C */ TPos3f mMtx;
|
|
/* 0x4C */ bool mNormalizeScale;
|
|
};
|