BVB Source Codes

CRYENGINE Show VehicleHelper.h Source code

Return Download CRYENGINE: download VehicleHelper.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description:
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 03:04:2006: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLEHELPER_H__
  15. #define __VEHICLEHELPER_H__
  16.  
  17. class CVehicle;
  18.  
  19. class CVehicleHelper
  20.         : public IVehicleHelper
  21. {
  22. public:
  23.         CVehicleHelper() : m_pParentPart(NULL)
  24.         {
  25.         }
  26.  
  27.         // IVehicleHelper
  28.         virtual void            Release()          { delete this; }
  29.  
  30.         virtual const Matrix34& GetLocalTM() const { return m_localTM; }
  31.         virtual void            GetVehicleTM(Matrix34& vehicleTM, bool forced = false) const;
  32.         virtual void            GetWorldTM(Matrix34& worldTM) const;
  33.         virtual void            GetReflectedWorldTM(Matrix34& reflectedWorldTM) const;
  34.  
  35.         virtual Vec3            GetLocalSpaceTranslation() const;
  36.         virtual Vec3            GetVehicleSpaceTranslation() const;
  37.         virtual Vec3            GetWorldSpaceTranslation() const;
  38.  
  39.         virtual IVehiclePart*   GetParentPart() const;
  40.         // ~IVehicleHelper
  41.  
  42.         void GetMemoryUsage(ICrySizer* pSizer) const
  43.         {
  44.                 pSizer->AddObject(this, sizeof(*this));
  45.         }
  46.  
  47. protected:
  48.         IVehiclePart* m_pParentPart;
  49.  
  50.         Matrix34      m_localTM;
  51.  
  52.         friend class CVehicle;
  53. };
  54.  
  55. #endif
  56.  
downloadVehicleHelper.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