BVB Source Codes

CRYENGINE Show VehicleSeatActionOrientateBoneToView.h Source code

Return Download CRYENGINE: download VehicleSeatActionOrientateBoneToView.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __VEHICLESEATACTIONORIENTATEBONETOVIEW_H__
  4. #define __VEHICLESEATACTIONORIENTATEBONETOVIEW_H__
  5.  
  6. #include <CryAnimation/ICryAnimation.h>
  7. #include <CryEntitySystem/IEntityComponent.h>
  8.  
  9. struct ISkeletonPose;
  10. struct IAnimatedCharacter;
  11.  
  12. class CVehicleSeatActionOrientateBoneToView
  13.         : public IVehicleSeatAction
  14. {
  15.         IMPLEMENT_VEHICLEOBJECT
  16.  
  17. private:
  18.  
  19. public:
  20.         CVehicleSeatActionOrientateBoneToView();
  21.  
  22.         virtual bool Init(IVehicle* pVehicle, IVehicleSeat* pSeat, const CVehicleParams& table) override;
  23.         virtual void Reset() override;
  24.         virtual void Release() override { delete this; }
  25.  
  26.         virtual void StartUsing(EntityId passengerId) override;
  27.         virtual void ForceUsage() override                                                               {}
  28.         virtual void StopUsing() override;
  29.         virtual void OnAction(const TVehicleActionId actionId, int activationMode, float value) override {}
  30.  
  31.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override                          {}
  32.         virtual void PostSerialize() override                                                            {}
  33.         virtual void Update(const float deltaTime) override                                              {}
  34.  
  35.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override     {}
  36.  
  37.         virtual void PrePhysUpdate(const float dt) override;
  38.  
  39.         virtual void GetMemoryUsage(ICrySizer* s) const override;
  40.  
  41. protected:
  42.         Ang3              GetDesiredViewAngles(const Vec3& lookPos, const Vec3& aimPos) const;
  43.         Vec3              GetDesiredAimPosition() const;
  44.         Vec3              GetCurrentLookPosition() const;
  45.  
  46.         IDefaultSkeleton* GetCharacterModelSkeleton() const;
  47.         ISkeletonPose*    GetSkeleton() const;
  48.  
  49.         IVehicle*                  m_pVehicle;
  50.         IVehicleSeat*              m_pSeat;
  51.  
  52.         IAnimationOperatorQueuePtr m_poseModifier;
  53.  
  54.         int                        m_MoveBoneId;
  55.         int                        m_LookBoneId;
  56.  
  57.         float                      m_Sluggishness;
  58.  
  59.         Ang3                       m_BoneOrientationAngles;
  60.         Ang3                       m_BoneSmoothingRate;
  61.         Quat                       m_BoneBaseOrientation;
  62.  
  63.         IAnimatedCharacter*        m_pAnimatedCharacter;
  64. };
  65.  
  66. #endif // __VEHICLESEATACTIONORIENTATEBONETOVIEW_H__
  67.  
downloadVehicleSeatActionOrientateBoneToView.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