update with mSphere_c changes

This commit is contained in:
elijah-thomas774
2026-09-30 13:24:41 -04:00
parent 004643f386
commit ffbfd7ace4
3 changed files with 7 additions and 7 deletions
@@ -36,7 +36,7 @@ finalizeState_Init__14dAcOMushRoom_cFv = .text:0x000023A0; // type:function size
getUnscaledRadiusX__14dAcOMushRoom_cFv = .text:0x000023B0; // type:function size:0xB8
getUnscaledRadiusY__14dAcOMushRoom_cFv = .text:0x00002470; // type:function size:0xBC
getRadiusX__14dAcOMushRoom_cFv = .text:0x00002530; // type:function size:0x34
getRadiusY__14dAcOMushRoom_cFv = .text:0x00002570; // type:function size:0x34
getShadowOffsetY__14dAcOMushRoom_cFv = .text:0x00002570; // type:function size:0x34
getRadiusZ__14dAcOMushRoom_cFv = .text:0x000025B0; // type:function size:0xC4
getResFileName__14dAcOMushRoom_cFv = .text:0x00002680; // type:function size:0xB0
getResMdlName__14dAcOMushRoom_cFv = .text:0x00002730; // type:function size:0x4
+1 -1
View File
@@ -87,7 +87,7 @@ public:
f32 getUnscaledRadiusX();
f32 getUnscaledRadiusY();
f32 getRadiusX();
f32 getRadiusY();
f32 getShadowOffsetY();
f32 getRadiusZ();
void initCc();
+5 -5
View File
@@ -27,7 +27,7 @@
#include "m/m3d/m3d.h"
#include "m/m_color.h"
#include "m/m_mtx.h"
#include "m/m_quat.h"
#include "m/m_sphere.h"
#include "m/m_vec.h"
#include "nw4r/g3d/g3d_camera.h"
#include "nw4r/g3d/g3d_dcc.h"
@@ -307,11 +307,11 @@ int dAcOMushRoom_c::actorExecute() {
int dAcOMushRoom_c::draw() {
drawModelType1(mMdl.getMdl());
mQuat_c rot(mVec3_c(0.0f, getRadiusY(), 0.0f), getRadiusX() * 2.0f);
mSphere_c sph(mVec3_c(0.0f, getShadowOffsetY(), 0.0f), getRadiusX() * 2.0f);
if (getType() == TYPE_MushroomD) {
drawShadow(mShadow, nullptr, mWorldMtx, &rot, -1, 0xC8, 0xB4, 0xE6, 0xFF, 0.0f);
drawShadow(mShadow, nullptr, mWorldMtx, &sph, -1, 0xC8, 0xB4, 0xE6, 0xFF, 0.0f);
} else {
drawShadow(mShadow, nullptr, mWorldMtx, &rot, -1, -1, -1, -1, -1, 0.0f);
drawShadow(mShadow, nullptr, mWorldMtx, &sph, -1, -1, -1, -1, -1, 0.0f);
}
if (mCameraIdx >= 0) {
@@ -528,7 +528,7 @@ f32 dAcOMushRoom_c::getRadiusX() {
return getUnscaledRadiusX() * mScale.x;
}
f32 dAcOMushRoom_c::getRadiusY() {
f32 dAcOMushRoom_c::getShadowOffsetY() {
return getUnscaledRadiusY() * mScale.x;
}