BVB Source Codes

CRYENGINE Show MovementBlock_TurnTowardsPosition.h Source code

Return Download CRYENGINE: download MovementBlock_TurnTowardsPosition.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #pragma once
  4.  
  5. #ifndef MovementBlock_TurnTowardsPosition_h
  6.         #define MovementBlock_TurnTowardsPosition_h
  7.  
  8.         #include "MovementPlan.h"
  9.         #include <CryAISystem/MovementStyle.h>
  10.  
  11. namespace Movement
  12. {
  13. namespace MovementBlocks
  14. {
  15. class TurnTowardsPosition : public Movement::Block
  16. {
  17. public:
  18.         TurnTowardsPosition(const Vec3& position);
  19.         virtual void                    End(IMovementActor& actor);
  20.         virtual Movement::Block::Status Update(const MovementUpdateContext& context);
  21.         virtual bool                    InterruptibleNow() const { return true; }
  22.         virtual const char*             GetName() const          { return "TurnTowardsPosition"; }
  23.  
  24. private:
  25.         Vec3  m_positionToTurnTowards;
  26.         float m_timeSpentAligning;
  27.         float m_correctBodyDirTime;
  28. };
  29. }
  30. }
  31.  
  32. #endif // MovementBlock_TurnTowardsPosition_h
  33.  
downloadMovementBlock_TurnTowardsPosition.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