Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
direction_noise_random_manipulator.h
1 #pragma once
2 
3 #include "../particle_script.h"
4 
5 namespace smlt {
6 
8 public:
9  DirectionNoiseRandomManipulator(ParticleScript* script, const Vec3& dir, const Vec3& noise_amount):
10  Manipulator(script, "direction_noise_random"),
11  dir_(dir),
12  noise_amount_(noise_amount) {}
13 
14 private:
15  void do_manipulate(
16  ParticleSystem* system,
17  Particle* particles,
18  std::size_t particle_count, float dt) const override;
19 
20  Vec3 dir_;
21  Vec3 noise_amount_;
22 };
23 
24 
25 }
smlt::Manipulator
Definition: particle_script.h:38
smlt::Vec3
Definition: vec3.h:23
smlt
Definition: animation.cpp:25
smlt::ParticleSystem
Definition: particle_system.h:43
smlt::DirectionNoiseRandomManipulator
Definition: direction_noise_random_manipulator.h:7
smlt::Particle
Definition: particle_system.h:21
smlt::ParticleScript
Definition: particle_script.h:71