SBSPSS/source/platform/plurve.cpp
Charles da561824de
2001-07-20 14:49:04 +00:00

29 lines
748 B
C++

/*=========================================================================
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()
{
CNpcGhostTrainPlatform::postInit();
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 );
calculateNonRotatedCollisionData();
}