This commit is contained in:
parent
0eefb51d64
commit
bc64aafd86
2 changed files with 54 additions and 0 deletions
27
source/platform/plurve.cpp
Normal file
27
source/platform/plurve.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=========================================================================
|
||||
|
||||
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()
|
||||
{
|
||||
CNpcRaftPlatform::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 );
|
||||
}
|
27
source/platform/plurve.h
Normal file
27
source/platform/plurve.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*=========================================================================
|
||||
|
||||
plurve.h
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __PLATFORM_PLURVE_H__
|
||||
#define __PLATFORM_PLURVE_H__
|
||||
|
||||
#ifndef __PLATFORM_PRAFT_H__
|
||||
#include "platform\praft.h"
|
||||
#endif
|
||||
|
||||
class CNpcLoveBoatPlatform : public CNpcRaftPlatform
|
||||
{
|
||||
public:
|
||||
virtual void postInit();
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Reference in a new issue