Changeset 10271 in orxonox.OLD for branches/playability/src/world_entities/projectiles/spike.cc
- Timestamp:
- Jan 17, 2007, 6:15:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/spike.cc
r10260 r10271 132 132 void Spike::tick (float dt) 133 133 { 134 //Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1);135 134 Vector v = this->velocity * dt; 136 135 this->shiftCoor(v); … … 140 139 141 140 angle += rotationSpeed * dt; 142 143 /* printf( "spike tick\n" );*/144 141 } 145 142 … … 160 157 { 161 158 glPushAttrib(GL_ENABLE_BIT); 162 //glDisable(GL_LIGHTING);163 164 159 glMatrixMode(GL_MODELVIEW); 165 160 glPushMatrix(); … … 170 165 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 171 166 glRotatef(angle, 1.0, 0.0, 0.0); 167 172 168 this->getAbsDir().matrix (matrix); 173 169 glMultMatrixf((float*)matrix); 174 170 this->getModel()->draw(); 175 171 176 // this->halo->draw();177 178 172 glPopMatrix(); 179 180 173 glPopAttrib(); 181 174 }
Note: See TracChangeset
for help on using the changeset viewer.