Changeset 4434 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jun 1, 2005, 11:27:12 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4433 r4434 240 240 // rendering new position. 241 241 tickPart->position = tickPart->position + tickPart->velocity * dt; 242 tickPart->radius = radiusAnim.getValue(tickPart->lifeCycle); 242 tickPart->radius = radiusAnim.getValue(tickPart->lifeCycle) 243 + randRadiusAnim.getValue(tickPart->lifeCycle) * tickPart->radiusRand; 244 245 tickPart->mass = massAnim.getValue(tickPart->lifeCycle) 246 + randMassAnim.getValue(tickPart->lifeCycle) * tickPart->massRand; 243 247 244 248 tickPart->extForce = Vector(0,0,0); … … 450 454 451 455 // particle->rotation = ; //! \todo rotation is once again something to be done. 452 particles->mass = this->massAnim.getValue(0.0); 453 particles->radius = this->radiusAnim.getValue(0.0); 456 particles->massRand = 2*(float)rand()/RAND_MAX -1; 457 particles->radiusRand = 2* (float)rand()/RAND_MAX -1; 458 particles->mass = this->massAnim.getValue(0.0) + this->randMassAnim.getValue(0.0)*particles->massRand; 459 particles->radius = this->radiusAnim.getValue(0.0) + this->randRadiusAnim.getValue(0.0)*particles->radiusRand; 454 460 455 461 ++this->count; -
orxonox/trunk/src/lib/particles/particle_system.h
r4433 r4434 49 49 Quaternion rotation; //!< The current rotation of this particle. 50 50 float mass; //!< The mass of this particle. 51 float massRand; 51 52 float radius; //!< The current size of this particle. 52 float radius It; //!< The difference of the Size per second.53 float radiusRand; 53 54 54 55 GLfloat color [4]; //!< A Color for the particles. -
orxonox/trunk/src/story_entities/world.cc
r4431 r4434 476 476 system->setLifeSpan(.5); 477 477 system->setConserve(.8); 478 system->setRadius(0.0, 1.0, . 6);479 system->setRadius(.2, 3, .2);478 system->setRadius(0.0, 1.0, .8); 479 system->setRadius(.2, 3, 2.0); 480 480 system->setRadius(1.0, 0.0, .0); 481 481 system->setMass (0.0, 1.0); 482 482 483 system->setColor(0, .5,0,0, .5);484 system->setColor(.5, 1,1,0, 1);483 system->setColor(0, .5,0,0,1); 484 system->setColor(.5, 1,1,0,.01); 485 485 system->setColor(1.0, 0,0,0,0); 486 486
Note: See TracChangeset
for help on using the changeset viewer.