Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2007, 6:15:21 PM (17 years ago)
Author:
nicolasc
Message:

working spikeballs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/spike.cc

    r10260 r10271  
    132132void Spike::tick (float dt)
    133133{
    134   //Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1);
    135134  Vector v = this->velocity * dt;
    136135  this->shiftCoor(v);
     
    140139
    141140  angle += rotationSpeed * dt;
    142 
    143 /*  printf( "spike tick\n" );*/
    144141}
    145142
     
    160157{
    161158  glPushAttrib(GL_ENABLE_BIT);
    162   //glDisable(GL_LIGHTING);
    163 
    164159  glMatrixMode(GL_MODELVIEW);
    165160  glPushMatrix();
     
    170165  glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    171166  glRotatef(angle, 1.0, 0.0, 0.0);
     167
    172168  this->getAbsDir().matrix (matrix);
    173169  glMultMatrixf((float*)matrix);
    174170  this->getModel()->draw();
    175171
    176 //   this->halo->draw();
    177 
    178172  glPopMatrix();
    179 
    180173  glPopAttrib();
    181174}
Note: See TracChangeset for help on using the changeset viewer.