diff --git a/source/platform/pfishhk.cpp b/source/platform/pfishhk.cpp index 2852f9184..a65bf612d 100644 --- a/source/platform/pfishhk.cpp +++ b/source/platform/pfishhk.cpp @@ -38,6 +38,9 @@ void CNpcFishHookPlatform::postInit() m_isShuttingDown = false; m_lineBase.vx = Pos.vx; m_lineBase.vy = 0; + + sBBox boundingBox = m_modelGfx->GetBBox(); + setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, boundingBox.YMin + 15 ); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/source/platform/platform.cpp b/source/platform/platform.cpp index cc7a05f2c..6c34b66fe 100644 --- a/source/platform/platform.cpp +++ b/source/platform/platform.cpp @@ -478,7 +478,7 @@ void CNpcPlatform::postInit() { sBBox boundingBox = m_modelGfx->GetBBox(); setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) ); - setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 ); + setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, boundingBox.YMin ); if ( m_type == NPC_LINEAR_PLATFORM ) { diff --git a/source/platform/ppendulm.cpp b/source/platform/ppendulm.cpp index 8e4900e7d..19fbf2294 100644 --- a/source/platform/ppendulm.cpp +++ b/source/platform/ppendulm.cpp @@ -38,6 +38,9 @@ void CNpcPendulumPlatform::postInit() m_heading = 1024; m_lineBase.vx = Pos.vx; m_lineBase.vy = 0; + + sBBox boundingBox = m_modelGfx->GetBBox(); + setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, boundingBox.YMin + 15 ); } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////