Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4348 in orxonox.OLD for orxonox


Ignore:
Timestamp:
May 28, 2005, 12:05:50 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: particles now move at the desired velocity

Location:
orxonox/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/particles/particle_system.cc

    r4338 r4348  
    231231  while (likely(tickPart != NULL))
    232232    {
    233       tickPart->position = tickPart->position + tickPart->velocity;
     233      tickPart->position = tickPart->position + tickPart->velocity * dt;
    234234      tickPart->radius += tickPart->radiusIt * dt;
    235235
  • orxonox/trunk/src/lib/gui/gui/gui_gtk.cc

    r4345 r4348  
    15141514
    15151515#endif /* HAVE_GTK2 */
    1516   PRINT(1)("%s set to: %d\n", this->title, this->value);
     1516  PRINT(4)("%s set to: %d\n", this->title, this->value);
    15171517}
    15181518
  • orxonox/trunk/src/subprojects/particles/particle_fun.cc

    r4343 r4348  
    194194         
    195195          emitterBox->fill(new Label("Velocity"));
    196           Slider* velocity = new Slider("Velocity", 0, 2);
    197           velocity->setExactness(3);
     196          Slider* velocity = new Slider("Velocity", 0, 20);
     197          velocity->setExactness(2);
    198198          velocity->connectSignal("value_changed", (void*)velocity, emitterChange );
    199199          emitterBox->fill(velocity);
Note: See TracChangeset for help on using the changeset viewer.