This commit is contained in:
parent
2f3a11f9f4
commit
5b785068c2
1 changed files with 9 additions and 1 deletions
|
@ -37,7 +37,15 @@
|
||||||
|
|
||||||
void CNpcJellyfishPlatform::postInit()
|
void CNpcJellyfishPlatform::postInit()
|
||||||
{
|
{
|
||||||
CNpcLinearPlatform::postInit();
|
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||||
|
boundingBox.YMin += 8;
|
||||||
|
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
|
||||||
|
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 );
|
||||||
|
|
||||||
|
calculateNonRotatedCollisionData();
|
||||||
|
setCollisionAngle( m_tiltAngle >> 8 );
|
||||||
|
|
||||||
|
m_npcPath.setPathType( CNpcPath::PONG_PATH );
|
||||||
|
|
||||||
m_vertScale = 0;
|
m_vertScale = 0;
|
||||||
m_dipCount = 0;
|
m_dipCount = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue