hkpWorldCallbackUtil.h
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:4k
源码类别:

其他游戏

开发平台:

Visual C++

  1. /* 
  2.  * 
  3.  * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
  4.  * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
  5.  * Level 2 and Level 3 source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2009 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
  6.  * 
  7.  */
  8. #ifndef HK_DYNAMICS2_WORLD_CALLBACK_UTIL_H
  9. #define HK_DYNAMICS2_WORLD_CALLBACK_UTIL_H
  10. class hkpWorld;
  11. struct hkpContactPointAddedEvent;
  12. struct hkpContactPointRemovedEvent;
  13. struct hkpContactProcessEvent;
  14. struct hkpContactPointConfirmedEvent;
  15. struct hkpConstraintBrokenEvent;
  16. class hkStepInfo;
  17. class hkpPhantom;
  18. class hkpContactImpulseLimitBreachedListener;
  19. class hkpContactImpulseLimitBreachedListenerInfo; 
  20. class hkpWorldCallbackUtil
  21. {
  22. public:
  23. static void HK_CALL fireActionAdded( hkpWorld* world, hkpAction* action ) ;
  24. static void HK_CALL fireActionRemoved( hkpWorld* world, hkpAction* action ) ;
  25. static void HK_CALL fireEntityAdded( hkpWorld* world, hkpEntity* entity ) ;
  26. static void HK_CALL fireEntityRemoved( hkpWorld* world, hkpEntity* entity ) ;
  27. static void HK_CALL fireEntityShapeSet( hkpWorld* world, hkpEntity* entity ) ;
  28. static void HK_CALL fireEntitySetMotionType( hkpWorld* world, hkpEntity* entity ) ;
  29. static void HK_CALL firePhantomAdded(    hkpWorld* world, hkpPhantom* phantom );
  30. static void HK_CALL firePhantomRemoved(  hkpWorld* world, hkpPhantom* phantom );
  31. static void HK_CALL firePhantomShapeSet( hkpWorld* world, hkpPhantom* phantom ) ;
  32. static void HK_CALL fireConstraintAdded(   hkpWorld* world, hkpConstraintInstance* constraint ) ;
  33. static void HK_CALL fireConstraintRemoved( hkpWorld* world, hkpConstraintInstance* constraint ) ;
  34. static void HK_CALL fireConstraintBroken( hkpWorld* world, const hkpConstraintBrokenEvent& event ) ;
  35. static void HK_CALL fireContactPointAdded( hkpWorld* world, hkpContactPointAddedEvent& event);
  36. static void HK_CALL fireContactPointConfirmed( hkpWorld* world, hkpContactPointConfirmedEvent& event );
  37. static void HK_CALL fireContactPointRemoved( hkpWorld* world, hkpContactPointRemovedEvent& event );
  38. static void HK_CALL fireContactProcess( hkpWorld* world, hkpContactProcessEvent& event );
  39. static void HK_CALL firePostSimulationCallback( hkpWorld* world );
  40. static void HK_CALL firePostIntegrateCallback( hkpWorld* world, const hkStepInfo& info );
  41. static void HK_CALL firePostCollideCallback( hkpWorld* world, const hkStepInfo& info );
  42. // This fires both island and entity activation callbacks.
  43. static void HK_CALL fireIslandActivated( hkpWorld* world, hkpSimulationIsland* island );
  44. // This fires both island and entity deactivation callbacks.
  45. static void HK_CALL fireIslandDeactivated( hkpWorld* world, hkpSimulationIsland* island );
  46. static void HK_CALL fireIslandPostIntegrateCallback( hkpWorld* world, hkpSimulationIsland* island, const hkStepInfo& info );
  47. static void HK_CALL fireIslandPostCollideCallback( hkpWorld* world, hkpSimulationIsland* island, const hkStepInfo& info );
  48. static void HK_CALL fireWorldDeleted( hkpWorld* world ) ;
  49. static void HK_CALL fireWorldRemoveAll( hkpWorld* world ) ;
  50. static void HK_CALL fireInactiveEntityMoved( hkpWorld* world, hkpEntity* entity);
  51. static void HK_CALL fireContactImpulseLimitBreached( hkpWorld* world, const hkpContactImpulseLimitBreachedListenerInfo* breachedContacts, int numBreachedContacts );
  52. };
  53. #endif // HK_DYNAMICS2_WORLD_CALLBACK_UTIL_H
  54. /*
  55. * Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20090216)
  56. * Confidential Information of Havok.  (C) Copyright 1999-2009
  57. * Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
  58. * Logo, and the Havok buzzsaw logo are trademarks of Havok.  Title, ownership
  59. * rights, and intellectual property rights in the Havok software remain in
  60. * Havok and/or its suppliers.
  61. * Use of this software for evaluation purposes is subject to and indicates
  62. * acceptance of the End User licence Agreement for this product. A copy of
  63. * the license is included with this software and is also available at www.havok.com/tryhavok.
  64. */