PeriDyno 0.9.2
Loading...
Searching...
No Matches
ParticleEmitter.cpp
Go to the documentation of this file.
1#include "ParticleEmitter.h"
2
3namespace dyno
4{
5 template<typename TDataType>
8 {
9 this->setForceUpdate(true);
10
11 this->varVelocityMagnitude()->setRange(Real(0), Real(10));
12 this->varSamplingDistance()->setRange(Real(0.001), Real(1.0));
13 }
14
15 template<typename TDataType>
17 {
18 mPosition.clear();
19 mVelocity.clear();
20 }
21
22 template<typename TDataType>
27
28 template<typename TDataType>
30 {
31 this->generateParticles();
32 }
33
34 template<typename TDataType>
36 {
37 return "Particle Emitters";
38 }
39
41}
#define DEFINE_CLASS(name)
Definition Object.h:140
void setForceUpdate(bool b)
Definition Node.cpp:528
std::string getNodeType() override
virtual void generateParticles()
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:24
ArrayMap< T, DeviceType::GPU > DArrayMap
Definition ArrayMap.inl:80