mirror of https://github.com/AxioDL/metaforce.git
Decomp fix for CSimpleShadow
This commit is contained in:
parent
0e8245500a
commit
78bdc35f60
|
@ -67,8 +67,10 @@ void CSimpleShadow::Calculate(const zeus::CAABox& aabb, const zeus::CTransform&
|
|||
}
|
||||
|
||||
if (height > 0.1f + halfHeight) {
|
||||
TUniqueId cid = kInvalidUniqueId;
|
||||
EntityList nearList;
|
||||
mgr.BuildNearList(nearList, pos, zeus::skDown, x40_maxObjHeight, CMaterialFilter::MakeInclude(CMaterialList(EMaterialTypes::Floor)), nullptr);
|
||||
|
||||
TUniqueId cid = kInvalidUniqueId;
|
||||
CRayCastResult resD = CGameCollision::RayDynamicIntersection(mgr, cid, pos, zeus::skDown, x40_maxObjHeight,
|
||||
CMaterialFilter::skPassEverything, nearList);
|
||||
if (resD.IsValid() && resD.GetT() < height) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
bool Valid() const { return x48_24_collision; }
|
||||
zeus::CAABox GetMaxShadowBox(const zeus::CAABox& aabb) const;
|
||||
zeus::CAABox GetBounds() const;
|
||||
void SetAlwaysCalculateRadius(bool) { x48_25_alwaysCalculateRadius = true; }
|
||||
void SetAlwaysCalculateRadius(bool b) { x48_25_alwaysCalculateRadius = b; }
|
||||
float GetMaxObjectHeight() const { return x40_maxObjHeight; }
|
||||
void SetUserAlpha(float a) { x38_userAlpha = a; }
|
||||
const zeus::CTransform& GetTransform() const { return x0_xf; }
|
||||
|
|
Loading…
Reference in New Issue