BVB Source Codes

CRYENGINE Show BreezeGenerator.h Source code

Return Download CRYENGINE: download BreezeGenerator.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef _BREEZEGENERATOR_H
  4. #define _BREEZEGENERATOR_H
  5.  
  6. #include "Cry3DEngineBase.h"
  7.  
  8. struct SBreeze;
  9.  
  10. // Spawns wind volumes around the camera to emulate breezes
  11. class CBreezeGenerator : public Cry3DEngineBase
  12. {
  13.         friend class C3DEngine;
  14.  
  15.         // The array of active breezes
  16.         SBreeze* m_breezes;
  17.  
  18.         // The radius around the camera where the breezes will be spawned
  19.         float m_spawn_radius;
  20.  
  21.         // The spread (variation in direction on spawn)
  22.         float m_spread;
  23.  
  24.         // The max. number of wind areas active at the same time
  25.         uint32 m_count;
  26.  
  27.         // The max. extents of each breeze
  28.         float m_radius;
  29.  
  30.         // The max. life of each breeze
  31.         float m_lifetime;
  32.  
  33.         // The random variance of each breeze in respect to it's other attributes
  34.         float m_variance;
  35.  
  36.         // The strength of the breeze (as a factor of the original wind vector)
  37.         float m_strength;
  38.  
  39.         // The speed of the breeze movement (not coupled to the wind speed)
  40.         float m_movement_speed;
  41.  
  42.         // The global direction of the environment wind
  43.         Vec3 m_wind_speed;
  44.  
  45.         // Set a fixed height for the breeze, for levels without terrain. -1 uses the terrain height
  46.         float m_fixed_height;
  47.  
  48.         // Approximate threshold velocity that the wind can add to an entity part per second that will awake it (0 disables)
  49.         float m_awake_thresh;
  50.  
  51.         // breeze generation enabled?
  52.         bool m_enabled;
  53.  
  54. public:
  55.  
  56.         CBreezeGenerator();
  57.         ~CBreezeGenerator();
  58.  
  59.         void Initialize();
  60.  
  61.         void Reset();
  62.  
  63.         void Shutdown();
  64.  
  65.         void Update();
  66. };
  67.  
  68. #endif
  69.  
downloadBreezeGenerator.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