BVB Source Codes

CRYENGINE Show CryActionPhysicQueues.h Source code

Return Download CRYENGINE: download CryActionPhysicQueues.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.  
  6.    Container for Raycast/Primitive deferred queues
  7.  
  8.    -------------------------------------------------------------------------
  9.    History:
  10.    - 20:10:20010   Created by Benito G.R.
  11.  
  12. *************************************************************************/
  13.  
  14. #ifndef __CRYACTION_PHYSICQUEUES_H__
  15. #define __CRYACTION_PHYSICQUEUES_H__
  16.  
  17. #pragma once
  18.  
  19. #include <CryPhysics/RayCastQueue.h>
  20. #include <CryPhysics/IntersectionTestQueue.h>
  21.  
  22. class CCryActionPhysicQueues
  23. {
  24. public:
  25.         typedef RayCastQueue<41>          CryActionRayCaster;
  26.         typedef IntersectionTestQueue<43> CryActionIntersectionTester;
  27.  
  28.         CCryActionPhysicQueues()
  29.         {
  30.                 m_rayCaster.SetQuota(8);
  31.                 m_intersectionTester.SetQuota(6);
  32.         }
  33.  
  34.         CryActionRayCaster&          GetRayCaster()          { return m_rayCaster; }
  35.         CryActionIntersectionTester& GetIntersectionTester() { return m_intersectionTester; }
  36.  
  37.         void                         Update(float frameTime)
  38.         {
  39.                 m_rayCaster.Update(frameTime);
  40.                 m_intersectionTester.Update(frameTime);
  41.         }
  42.  
  43. private:
  44.         CryActionRayCaster          m_rayCaster;
  45.         CryActionIntersectionTester m_intersectionTester;
  46. };
  47.  
  48. #endif //__CRYACTION_PHYSICQUEUES_H__
  49.  
downloadCryActionPhysicQueues.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top