Changeset 3856 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Apr 17, 2005, 2:58:24 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/animation3d.cc
r3855 r3856 243 243 \brief linear interpolation between this keyframe and the next one 244 244 \param timePassed The time passed since this Keyframe began 245 246 \todo implement also do this for direction 245 247 */ 246 248 void Animation3D::linear(float timePassed) const … … 254 256 \brief a Sinusodial Interpolation between this keyframe and the next one 255 257 \param timePassed The time passed since this Keyframe began 258 259 \todo implement 256 260 */ 257 261 void Animation3D::sine(float timePassed) const 258 262 { 259 263 this->linear(timePassed); 260 264 } 261 265 … … 263 267 \brief a cosine interpolation between this keyframe and the next one 264 268 \param timePassed The time passed since this Keyframe began 269 270 \todo implement 265 271 */ 266 272 void Animation3D::cosine(float timePassed) const 267 273 { 268 274 this->linear(timePassed); 269 275 } 270 276 … … 275 281 void Animation3D::exp(float timePassed) const 276 282 { 277 283 this->linear(timePassed); 278 284 } 279 285 … … 281 287 \brief a negative exponential interpolation between this keyframe and the next one 282 288 \param timePassed The time passed since this Keyframe began 289 290 \todo implement 283 291 */ 284 292 void Animation3D::negExp(float timePassed) const … … 290 298 \brief a quadratic interpolation between this keyframe and the next one 291 299 \param timePassed The time passed since this Keyframe began 300 301 \todo implement 292 302 */ 293 303 void Animation3D::quadratic(float timePassed) const 294 304 { 295 305 this->linear(timePassed); 296 306 } 297 307 … … 302 312 void Animation3D::random(float timePassed) const 303 313 { 304 305 } 314 this->object->setRelCoor(this->currentKeyFrame->position * (float)rand()/(float)RAND_MAX); 315 this->object->setRelDir(this->currentKeyFrame->direction * (float)rand()/(float)RAND_MAX); 316 } -
orxonox/trunk/src/t_animation.h
r3855 r3856 332 332 float tAnimation<T>::quadratic(float timePassed) const 333 333 { 334 334 this->linear(timePassed); 335 335 } 336 336
Note: See TracChangeset
for help on using the changeset viewer.