BVB Source Codes

CRYENGINE Show VehicleSeatActionRotateBone.h Source code

Return Download CRYENGINE: download VehicleSeatActionRotateBone.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __VEHICLESEATACTIONROTATEBONE_H__
  4. #define __VEHICLESEATACTIONROTATEBONE_H__
  5.  
  6. #include <CryAnimation/ICryAnimation.h>
  7.  
  8. struct ISkeletonPose;
  9. struct IAnimatedCharacter;
  10.  
  11. class CVehicleSeatActionRotateBone
  12.         : public IVehicleSeatAction
  13. {
  14.         IMPLEMENT_VEHICLEOBJECT
  15.  
  16. private:
  17.  
  18. public:
  19.  
  20.         CVehicleSeatActionRotateBone();
  21.         virtual ~CVehicleSeatActionRotateBone();
  22.  
  23.         virtual bool Init(IVehicle* pVehicle, IVehicleSeat* pSeat, const CVehicleParams& table) override;
  24.         virtual void Reset() override;
  25.         virtual void Release() override { delete this; }
  26.  
  27.         virtual void StartUsing(EntityId passengerId) override;
  28.         virtual void ForceUsage() override {}
  29.         virtual void StopUsing() override;
  30.         virtual void OnAction(const TVehicleActionId actionId, int activationMode, float value) override;
  31.  
  32.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override;
  33.         virtual void PostSerialize() override               {}
  34.         virtual void Update(const float deltaTime) override {}
  35.  
  36.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override;
  37.  
  38.         virtual void GetMemoryUsage(ICrySizer* s) const override;
  39.  
  40.         virtual void PrePhysUpdate(const float dt) override;
  41.  
  42. protected:
  43.         IDefaultSkeleton* GetCharacterModelSkeleton() const;
  44.         void              UpdateSound(const float dt);
  45.  
  46.         //static tSoundID PlaySound(IEntityAudioComponent& rIEntityAudioComponent, const char* soundName);
  47.         //static void SetSoundParam(IEntityAudioComponent& rIEntityAudioComponent, tSoundID soundID, const char* param, float value);
  48.         //static void StopSound(IEntityAudioComponent& rIEntityAudioComponent, tSoundID soundID);
  49.         IVehicle*                  m_pVehicle;
  50.         IVehicleSeat*              m_pSeat;
  51.  
  52.         IAnimationOperatorQueuePtr m_poseModifier;
  53.  
  54.         int                        m_MoveBoneId;
  55.  
  56.         Ang3                       m_boneRotation;
  57.         Ang3                       m_prevBoneRotation;
  58.         Quat                       m_boneBaseOrientation;
  59.         Quat                       m_currentMovementRotation;
  60.         Ang3                       m_desiredBoneRotation;
  61.         Ang3                       m_rotationSmoothingRate;
  62.  
  63.         float                      m_soundRotSpeed;
  64.         float                      m_soundRotLastAppliedSpeed;
  65.         float                      m_soundRotSpeedSmoothRate;
  66.         float                      m_soundRotSpeedSmoothTime;
  67.         float                      m_soundRotSpeedScalar;
  68.         string                     m_soundNameFP;
  69.         string                     m_soundNameTP;
  70.         string                     m_soundParamRotSpeed;
  71.  
  72.         float                      m_pitchLimitMax;
  73.         float                      m_pitchLimitMin;
  74.         float                      m_settlePitch;
  75.         float                      m_settleDelay;
  76.         float                      m_settleTime;
  77.         float                      m_noDriverTime;
  78.  
  79.         float                      m_networkSluggishness;
  80.  
  81.         IAnimatedCharacter*        m_pAnimatedCharacter;
  82.  
  83.         float                      m_autoAimStrengthMultiplier;
  84.         float                      m_speedMultiplier;
  85.         float                      m_rotationMultiplier;
  86.  
  87.         //tSoundID m_rotatingSoundID;
  88.  
  89.         uint8 m_hasDriver         : 1;
  90.         uint8 m_driverIsLocal     : 1;
  91.         uint8 m_settleBoneOnExit  : 1;
  92.         uint8 m_useRotationSounds : 1;
  93.         uint8 m_stopCurrentSound  : 1;
  94.         uint8 m_rotationLockCount : 2;
  95. };
  96.  
  97. #endif // __VEHICLESEATACTIONROTATEBONE_H__
  98.  
downloadVehicleSeatActionRotateBone.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