Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
voxeldebrisgenerator.h
1 #pragma once
2 
3 #include <glm/glm.hpp>
4 
5 #include "property/property.h"
6 #include "voxelparticlespawnbase.h"
7 
8 class Transform;
9 class VoxelCluster;
10 
12 public:
13  VoxelDebrisGenerator(const VoxelCluster* creator);
14  virtual ~VoxelDebrisGenerator();
15 
16  void setOrientation(const glm::quat& orientation);
17  void setDensity(int density);
18  void setSpawnProbability(float spawnProbability);
19 
20  void spawn();
21 
22 
23 protected:
24  glm::quat m_orientation;
25  int m_density;
26  float m_spawnProbability;
27 
28  float createScale();
29 };
30 
Definition: voxelcluster.h:21
Definition: transform.h:9
Definition: voxelparticlespawnbase.h:10
Definition: voxeldebrisgenerator.h:11