Changeset 4836 in orxonox.OLD for orxonox/trunk/src/util/animation/animation3d.cc
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation3d.cc
r4746 r4836 28 28 29 29 /** 30 \briefstandard constructor30 * standard constructor 31 31 */ 32 32 Animation3D::Animation3D(PNode* object) … … 50 50 51 51 /** 52 \briefstandard deconstructor52 * standard deconstructor 53 53 54 54 deletes all the Keyframes … … 69 69 70 70 /** 71 \briefrewinds the Animation to the beginning (first KeyFrame and time == 0)71 * rewinds the Animation to the beginning (first KeyFrame and time == 0) 72 72 */ 73 73 void Animation3D::rewind() … … 81 81 82 82 /** 83 \briefAppends a new Keyframe84 \param position The position of the new Keyframe85 \param direction The direction of the new Keyframe.86 \param duration The duration from the new KeyFrame to the next one87 \param animFuncMov The function to animate position between this keyFrame and the next one88 \param animFuncRot The function to animate rotation between this keyFrame and the next one83 * Appends a new Keyframe 84 * @param position The position of the new Keyframe 85 * @param direction The direction of the new Keyframe. 86 * @param duration The duration from the new KeyFrame to the next one 87 * @param animFuncMov The function to animate position between this keyFrame and the next one 88 * @param animFuncRot The function to animate rotation between this keyFrame and the next one 89 89 */ 90 90 void Animation3D::addKeyFrame(Vector position, Quaternion direction, float duration, … … 130 130 131 131 /** 132 \briefticks the Animation133 \param dt how much time to tick132 * ticks the Animation 133 * @param dt how much time to tick 134 134 */ 135 135 void Animation3D::tick(float dt) … … 167 167 168 168 /** 169 \briefSets The kind of movment Animation between this keyframe and the next one170 \param animFuncMov: The Type of Animation to set169 * Sets The kind of movment Animation between this keyframe and the next one 170 * @param animFuncMov: The Type of Animation to set 171 171 */ 172 172 void Animation3D::setAnimFuncMov(ANIM_FUNCTION animFuncMov) … … 216 216 217 217 /** 218 \briefstays at the value of the currentKeyFrame219 \param timePassed The time passed since this Keyframe began218 * stays at the value of the currentKeyFrame 219 * @param timePassed The time passed since this Keyframe began 220 220 */ 221 221 void Animation3D::mConstant(float timePassed) const … … 232 232 233 233 /** 234 \brieflinear interpolation between this keyframe and the next one235 \param timePassed The time passed since this Keyframe began236 237 \todo implement also do this for direction234 * linear interpolation between this keyframe and the next one 235 * @param timePassed The time passed since this Keyframe began 236 237 @todo implement also do this for direction 238 238 */ 239 239 void Animation3D::mLinear(float timePassed) const … … 245 245 246 246 /** 247 \briefa Sinusodial Interpolation between this keyframe and the next one248 \param timePassed The time passed since this Keyframe began249 250 \todo implement247 * a Sinusodial Interpolation between this keyframe and the next one 248 * @param timePassed The time passed since this Keyframe began 249 250 @todo implement 251 251 */ 252 252 void Animation3D::mSine(float timePassed) const … … 264 264 265 265 /** 266 \briefa cosine interpolation between this keyframe and the next one267 \param timePassed The time passed since this Keyframe began268 269 \todo implement266 * a cosine interpolation between this keyframe and the next one 267 * @param timePassed The time passed since this Keyframe began 268 269 @todo implement 270 270 */ 271 271 void Animation3D::mCosine(float timePassed) const … … 287 287 288 288 /** 289 \briefan exponential interpolation between this keyframe and the next one290 \param timePassed The time passed since this Keyframe began289 * an exponential interpolation between this keyframe and the next one 290 * @param timePassed The time passed since this Keyframe began 291 291 */ 292 292 void Animation3D::mExp(float timePassed) const … … 297 297 298 298 /** 299 \briefa negative exponential interpolation between this keyframe and the next one300 \param timePassed The time passed since this Keyframe began299 * a negative exponential interpolation between this keyframe and the next one 300 * @param timePassed The time passed since this Keyframe began 301 301 */ 302 302 void Animation3D::mNegExp(float timePassed) const … … 316 316 317 317 /** 318 \briefa quadratic interpolation between this keyframe and the next one319 \param timePassed The time passed since this Keyframe began320 321 \todo implement318 * a quadratic interpolation between this keyframe and the next one 319 * @param timePassed The time passed since this Keyframe began 320 321 @todo implement 322 322 */ 323 323 void Animation3D::mQuadratic(float timePassed) const … … 328 328 329 329 /** 330 \briefsome random animation (fluctuating)331 \param timePassed The time passed since this Keyframe began330 * some random animation (fluctuating) 331 * @param timePassed The time passed since this Keyframe began 332 332 */ 333 333 void Animation3D::mRandom(float timePassed) const … … 346 346 347 347 /** 348 \briefSets The kind of rotation Animation between this keyframe and the next one349 \param animFuncRot: The Type of Animation to set348 * Sets The kind of rotation Animation between this keyframe and the next one 349 * @param animFuncRot: The Type of Animation to set 350 350 */ 351 351 void Animation3D::setAnimFuncRot(ANIM_FUNCTION animFuncRot) … … 385 385 386 386 /** 387 \briefstays at the value of the currentKeyFrame388 \param timePassed The time passed since this Keyframe began387 * stays at the value of the currentKeyFrame 388 * @param timePassed The time passed since this Keyframe began 389 389 */ 390 390 void Animation3D::rConstant(float timePassed) const … … 394 394 395 395 /** 396 \brieflinear interpolation between this keyframe and the next one397 \param timePassed The time passed since this Keyframe began398 399 \todo implement also do this for direction396 * linear interpolation between this keyframe and the next one 397 * @param timePassed The time passed since this Keyframe began 398 399 @todo implement also do this for direction 400 400 */ 401 401 void Animation3D::rLinear(float timePassed) const … … 407 407 408 408 /** 409 \briefa Sinusodial Interpolation between this keyframe and the next one410 \param timePassed The time passed since this Keyframe began411 412 \todo implement409 * a Sinusodial Interpolation between this keyframe and the next one 410 * @param timePassed The time passed since this Keyframe began 411 412 @todo implement 413 413 */ 414 414 void Animation3D::rSine(float timePassed) const … … 427 427 428 428 /** 429 \briefa cosine interpolation between this keyframe and the next one430 \param timePassed The time passed since this Keyframe began431 432 \todo implement429 * a cosine interpolation between this keyframe and the next one 430 * @param timePassed The time passed since this Keyframe began 431 432 @todo implement 433 433 */ 434 434 void Animation3D::rCosine(float timePassed) const … … 443 443 444 444 /** 445 \briefan exponential interpolation between this keyframe and the next one446 \param timePassed The time passed since this Keyframe began445 * an exponential interpolation between this keyframe and the next one 446 * @param timePassed The time passed since this Keyframe began 447 447 */ 448 448 void Animation3D::rExp(float timePassed) const … … 452 452 453 453 /** 454 \briefa negative exponential interpolation between this keyframe and the next one455 \param timePassed The time passed since this Keyframe began454 * a negative exponential interpolation between this keyframe and the next one 455 * @param timePassed The time passed since this Keyframe began 456 456 */ 457 457 void Animation3D::rNegExp(float timePassed) const … … 465 465 466 466 /** 467 \briefa quadratic interpolation between this keyframe and the next one468 \param timePassed The time passed since this Keyframe began469 470 \todo implement467 * a quadratic interpolation between this keyframe and the next one 468 * @param timePassed The time passed since this Keyframe began 469 470 @todo implement 471 471 */ 472 472 void Animation3D::rQuadratic(float timePassed) const … … 476 476 477 477 /** 478 \briefsome random animation (fluctuating)479 \param timePassed The time passed since this Keyframe began478 * some random animation (fluctuating) 479 * @param timePassed The time passed since this Keyframe began 480 480 */ 481 481 void Animation3D::rRandom(float timePassed) const
Note: See TracChangeset
for help on using the changeset viewer.