object-particle OK

This commit is contained in:
LagoLunatic
2025-04-08 17:03:42 -04:00
parent 6a64986a39
commit cd777aa35b
10 changed files with 97 additions and 65 deletions
+7 -7
View File
@@ -48,28 +48,28 @@ public:
f32 get_pos_y() { return mPos.y; }
void set_pos(cXyz& pos) { mPos.set(pos); }
void set_pos_y(float y) { mPos.y = y; }
bool chk_stop() { return bIsActive == false; }
bool chk_stop() { return mbIsActive == false; }
void delete_s() {
if(mSplashCb.getEmitter() != NULL){
mSplashCb.remove();
bIsActive = false;
mbIsActive = false;
}
}
void play_particle() {
JPABaseEmitter* pSplashEmitter = mSplashCb.getEmitter();
if(pSplashEmitter != NULL){
pSplashEmitter->clearStatus(1);
bIsActive = true;
pSplashEmitter->playCreateParticle();
mbIsActive = true;
}
}
void stop_particle() {
JPABaseEmitter* pSplashEmitter = mSplashCb.getEmitter();
if(pSplashEmitter != NULL){
pSplashEmitter->setStatus(1);
bIsActive = false;
pSplashEmitter->stopCreateParticle();
mbIsActive = false;
}
}
@@ -80,7 +80,7 @@ public:
/* 0x14 */ cXyz mBasePos;
/* 0x20 */ cXyz mPos;
/* 0x2C */ csXyz mAngle;
/* 0x32 */ bool bIsActive;
/* 0x32 */ bool mbIsActive;
}; // Size : 0x34
+2 -2
View File
@@ -85,10 +85,10 @@ public:
JUT_ASSERT(0x4d, mModel != NULL);
return mModel->getModelData()->getJointName()->getIndex(name);
}
int JSGGetNodeTransformation(u32 no, Mtx dst) const {
bool JSGGetNodeTransformation(u32 no, Mtx dst) const {
JUT_ASSERT(0x52, mModel != NULL);
cMtx_copy(mModel->getAnmMtx((u16)no), dst);
return 1;
return true;
}
f32 JSGGetAnimationFrameMax() const { return mAnmFrameMax; }
f32 JSGGetTextureAnimationFrameMax() const { return mTexAnimationFrameMax; }