SBSPSS/source/platform/plurve.cpp

29 lines
748 B
C++
Raw Normal View History

2001-06-06 16:37:01 +02:00
/*=========================================================================
plurve.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PLURVE_H__
#include "platform\plurve.h"
#endif
void CNpcLoveBoatPlatform::postInit()
{
2001-07-20 16:49:04 +02:00
CNpcGhostTrainPlatform::postInit();
2001-06-06 16:37:01 +02:00
sBBox boundingBox = m_modelGfx->GetBBox();
boundingBox.YMin += 32;
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 );
2001-06-12 15:45:45 +02:00
calculateNonRotatedCollisionData();
2001-06-06 16:37:01 +02:00
}