This commit is contained in:
parent
8728c500b3
commit
89493bb040
2 changed files with 13 additions and 0 deletions
|
@ -24,6 +24,18 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
void CNpcClamPlatform::postInit()
|
||||||
|
{
|
||||||
|
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||||
|
setCollisionSize( 80, 30 );
|
||||||
|
setCollisionCentreOffset( 0, -15 );
|
||||||
|
|
||||||
|
calculateNonRotatedCollisionData();
|
||||||
|
setCollisionAngle( m_tiltAngle >> 8 );
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcClamPlatform::render()
|
void CNpcClamPlatform::render()
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
class CNpcClamPlatform : public CNpcPlatform
|
class CNpcClamPlatform : public CNpcPlatform
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual void postInit();
|
||||||
virtual void render();
|
virtual void render();
|
||||||
virtual CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
|
virtual CRECT const *getThinkBBox() {return( CThing::getThinkBBox() );}
|
||||||
//void setBBox();
|
//void setBBox();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue