This commit is contained in:
parent
231568f508
commit
a322e08c17
3 changed files with 7 additions and 1 deletions
|
@ -38,6 +38,9 @@ void CNpcFishHookPlatform::postInit()
|
||||||
m_isShuttingDown = false;
|
m_isShuttingDown = false;
|
||||||
m_lineBase.vx = Pos.vx;
|
m_lineBase.vx = Pos.vx;
|
||||||
m_lineBase.vy = 0;
|
m_lineBase.vy = 0;
|
||||||
|
|
||||||
|
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||||
|
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, boundingBox.YMin + 15 );
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -478,7 +478,7 @@ void CNpcPlatform::postInit()
|
||||||
{
|
{
|
||||||
sBBox boundingBox = m_modelGfx->GetBBox();
|
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||||
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
|
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 )
|
if ( m_type == NPC_LINEAR_PLATFORM )
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,6 +38,9 @@ void CNpcPendulumPlatform::postInit()
|
||||||
m_heading = 1024;
|
m_heading = 1024;
|
||||||
m_lineBase.vx = Pos.vx;
|
m_lineBase.vx = Pos.vx;
|
||||||
m_lineBase.vy = 0;
|
m_lineBase.vy = 0;
|
||||||
|
|
||||||
|
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||||
|
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, boundingBox.YMin + 15 );
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Reference in a new issue