This commit is contained in:
parent
ff5bcfab95
commit
27cd9601d2
1 changed files with 7 additions and 0 deletions
|
@ -94,6 +94,13 @@ void CNpcBouncePlatform::think( int _frames )
|
|||
}
|
||||
}
|
||||
|
||||
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||
|
||||
s32 newCollisionHeight = ( ( ONE + m_vertScale ) * ( boundingBox.YMax - boundingBox.YMin ) ) >> 12;
|
||||
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), newCollisionHeight - 2 );
|
||||
|
||||
calculateNonRotatedCollisionData();
|
||||
|
||||
CPlatformThing::think(_frames);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue