SBSPSS/source/platform/pclam.cpp

53 lines
1.3 KiB
C++
Raw Normal View History

2001-05-15 18:30:28 +02:00
/*=========================================================================
pclam.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PCLAM_H__
#include "platform\pclam.h"
#endif
#ifndef __LEVEL_LEVEL_H__
#include "level\level.h"
#endif
#ifndef __UTILS_HEADER__
#include "utils\utils.h"
#endif
2001-06-28 22:53:03 +02:00
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcClamPlatform::postInit()
{
sBBox boundingBox = m_modelGfx->GetBBox();
setCollisionSize( 80, 30 );
setCollisionCentreOffset( 0, -15 );
calculateNonRotatedCollisionData();
setCollisionAngle( m_tiltAngle >> 8 );
}
2001-05-15 18:30:28 +02:00
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcClamPlatform::render()
{
2001-05-15 23:41:56 +02:00
CPlatformThing::render();
2001-05-15 18:30:28 +02:00
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2001-05-21 17:30:48 +02:00
/*void CNpcClamPlatform::setBBox()
2001-05-15 18:30:28 +02:00
{
2001-05-21 17:30:48 +02:00
//setCollisionSize( 54, PLATFORMCOLLISIONHEIGHT);
//setCollisionSize( 54, 10 );
setCollisionCentreOffset( 50, -100 );
}*/