Advertisement
dcomicboy

hitbox

Mar 29th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. CCharacterHitBox* pHitBox = (CCharacterHitBox *)g_pLTServer->CreateObject(hClass, &theStruct);
  2. if (!pHitBox) return;
  3.  
  4. m_hHitBox = pHitBox->m_hObject;
  5.  
  6. pHitBox->Init(m_hObject, this);
  7. pHitBox->SetCanActivate(LTTRUE);
  8. pHitBox->SetCanBeSearched(CanBeSearched());
  9.  
  10. if (m_hHitBox)
  11. {
  12. LTVector vDims;
  13. g_pPhysicsLT->GetObjectDims(m_hObject, &vDims);
  14. g_pPhysicsLT->SetObjectDims(m_hHitBox, &vDims,0);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement