Changeset 1021 for code/trunk/src/orxonox/particle
- Timestamp:
- Apr 10, 2008, 5:03:34 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/particle
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/particle/ParticleInterface.cc
r910 r1021 69 69 { 70 70 //Abgleichen der anderen Emitter an die Variabeln 71 for (int i= 0; i < numberOfEmitters_; i++) {71 for (int i=1; i < numberOfEmitters_; i++) { 72 72 particleSystem_->getEmitter(i)->setColour( colour_ ); 73 73 particleSystem_->getEmitter(i)->setTimeToLive( distance_ ); … … 84 84 } 85 85 86 void ParticleInterface::setRate( float r)86 void ParticleInterface::setRate(int r) 87 87 { 88 88 rate_ = r; … … 127 127 Vector3 ParticleInterface::getPositionOfEmitter ( int emitterNr ) 128 128 { 129 return particleSystem_->getEmitter( emitterNr)->getPosition();129 return particleSystem_->getEmitter(0)->getPosition(); 130 130 } 131 131 -
code/trunk/src/orxonox/particle/ParticleInterface.h
r910 r1021 48 48 void setVelocity( Real v ); 49 49 50 inline float getRate()50 inline int getRate() 51 51 { return rate_; }; 52 void setRate( float r );52 void setRate( int r ); 53 53 54 54 inline Real getDistance() … … 71 71 Real distance_; 72 72 Real velocity_; 73 float rate_;73 int rate_; 74 74 ColourValue colour_; 75 75 int numberOfEmitters_;
Note: See TracChangeset
for help on using the changeset viewer.