- Timestamp:
- Jan 20, 2006, 2:43:55 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r6609 r6627 525 525 526 526 #--------# 527 # FFmpeg # 527 # FFmpeg # 528 528 #--------# 529 529 # checking for FFmpeg-headers -
trunk/src/lib/math/quaternion.h
r6616 r6627 43 43 Quaternion (float m[4][4]); 44 44 /** turns a rotation along an axis into a Quaternion @param angle: the amount of radians to rotate @param axis: the axis to rotate around */ 45 inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2 ); v = axis * sin(angle/2); }45 inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2.0); v = axis * sin(angle/2.0); } 46 46 Quaternion (const Vector& dir, const Vector& up); 47 47 Quaternion (float roll, float pitch, float yaw); -
trunk/src/lib/particles/particle_emitter.cc
r6625 r6627 42 42 this->setEmissionRate(emissionRate); 43 43 this->setEmissionVelocity(velocity); 44 45 44 } 46 45 … … 79 78 this->setEmissionRate(PARTICLE_EMITTER_DEFAULT_EMISSION_RATE); 80 79 this->setSize(PARTICLE_EMITTER_DEFAULT_SIZE); 80 this->setEmissionMomentum(0); 81 this->setEmissionVelocity(1.0); 82 this->setSpread(M_PI); 81 83 82 84 this->system = NULL; -
trunk/src/world_entities/projectiles/guided_missile.cc
r6622 r6627 60 60 61 61 /* this is normaly done by World.cc by deleting the ParticleEngine */ 62 if (GuidedMissile::trailParticles != NULL && ClassList::getList(CL_ TEST_BULLET)->size() <= 1)62 if (GuidedMissile::trailParticles != NULL && ClassList::getList(CL_GUIDED_MISSILE)->size() <= 1) 63 63 { 64 64 if (ClassList::exists(GuidedMissile::trailParticles, CL_PARTICLE_SYSTEM)) … … 66 66 GuidedMissile::trailParticles = NULL; 67 67 } 68 if (GuidedMissile::explosionParticles != NULL && ClassList::getList(CL_ TEST_BULLET)->size() <= 1)68 if (GuidedMissile::explosionParticles != NULL && ClassList::getList(CL_GUIDED_MISSILE)->size() <= 1) 69 69 { 70 70 if (ClassList::exists(GuidedMissile::explosionParticles, CL_PARTICLE_SYSTEM)) -
trunk/src/world_entities/projectiles/rocket.cc
r6622 r6627 59 59 60 60 /* this is normaly done by World.cc by deleting the ParticleEngine */ 61 if (Rocket::trailParticles != NULL && ClassList::getList(CL_ TEST_BULLET)->size() <= 1)61 if (Rocket::trailParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1) 62 62 { 63 63 if (ClassList::exists(Rocket::trailParticles, CL_PARTICLE_SYSTEM)) … … 65 65 Rocket::trailParticles = NULL; 66 66 } 67 if (Rocket::explosionParticles != NULL && ClassList::getList(CL_ TEST_BULLET)->size() <= 1)67 if (Rocket::explosionParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1) 68 68 { 69 69 if (ClassList::exists(Rocket::explosionParticles, CL_PARTICLE_SYSTEM))
Note: See TracChangeset
for help on using the changeset viewer.