Partycles.
This commit is contained in:
+1
-1
@@ -654,7 +654,7 @@ int32 b2ParticleSystem::CreateParticle(const b2ParticleDef& def)
|
||||
// If the oldest particle should be destroyed...
|
||||
if (m_def.destroyByAge)
|
||||
{
|
||||
DestroyOldestParticle(0, false);
|
||||
DestroyOldestParticle(0, true);
|
||||
// Need to destroy this particle *now* so that it's possible to
|
||||
// create a new particle.
|
||||
SolveZombie();
|
||||
|
||||
+2
-2
@@ -299,7 +299,7 @@ public:
|
||||
/// b2World::Step()).
|
||||
void DestroyParticle(int32 index)
|
||||
{
|
||||
DestroyParticle(index, false);
|
||||
DestroyParticle(index, true);
|
||||
}
|
||||
|
||||
/// Destroy a particle.
|
||||
@@ -330,7 +330,7 @@ public:
|
||||
/// @return Number of particles destroyed.
|
||||
int32 DestroyParticlesInShape(const b2Shape& shape, const b2Transform& xf)
|
||||
{
|
||||
return DestroyParticlesInShape(shape, xf, false);
|
||||
return DestroyParticlesInShape(shape, xf, true);
|
||||
}
|
||||
|
||||
/// Destroy particles inside a shape.
|
||||
|
||||
Reference in New Issue
Block a user