Skip to content

Commit

Permalink
feat: #102 Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamhong committed Sep 3, 2020
1 parent 45652af commit e985d58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Skylicht
m_zone(NULL),
m_renderer(NULL),
Gravity(0.0f, -9.8f, 0.0f),
Friction(0.1f),
Friction(1.0f),
LifeMin(1.0f),
LifeMax(2.0f)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace Skylicht

virtual ~CZone();

inline void setPosition(core::vector3df& pos)
inline void setPosition(const core::vector3df& pos)
{
m_position = pos;
}
Expand Down
2 changes: 1 addition & 1 deletion Samples/Particles/Source/SampleParticles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void SampleParticles::initFireParticle(Particle::CParticleComponent *particleCom
// create emitter
Particle::CEmitter *emitter = group->addEmitter(factory->createRandomEmitter());
emitter->setTank(0);
emitter->setFlow(10.0f);
emitter->setFlow(100.0f);

// create renderer
Particle::IRenderer *renderer = group->setRenderer(factory->createQuadRenderer());
Expand Down

0 comments on commit e985d58

Please sign in to comment.