DragonNest/GameCommon/CollisionAndPush.cpp
2024-12-20 16:56:44 +08:00

33 lines
1.5 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "Stdafx.h"
#include "CollisionAndPush.h"
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
#endif
void ProcessCollisionAndPush( EtObjectHandle hObject, MatrixEx &matEx )
{
// 바실 미는거 나중에 처리하자..
// by mapping
/* std::vector< SCollisionResponse > vecResult;
if( hObject->FindCollision( Cross, vecResult, true, false ) )
{
int i;
EtVector3 vMove;
CCollisionCallback *pCallback;
for( i = 0; i < ( int )vecResult.size(); i++ )
{
pCallback = vecResult[ i ].pCollisionPrimitive->GetCallback();
if( pCallback )
{
vMove = ( 1.0f - vecResult[ i ].fContactTime ) * vecResult[ i ].vMove;
if( EtVec3LengthSq( &vMove ) > 0.0f )
{
pCallback->ProcessCollision( vMove );
}
}
}
}*/
}