Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5005 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Aug 14, 2005, 1:26:49 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: quatSchlarp works

Location:
orxonox/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r5003 r5005  
    541541      if (unlikely(this->toDirection != NULL))
    542542      {
    543         Quaternion rotQuat = (*this->toDirection / this->relDirection);
     543        Quaternion rotQuat = Quaternion::quatSlerp(Quaternion(0, Vector(0,1,0)), (*this->toDirection / this->relDirection), dt*this->bias);
    544544//         printf("1: ");
    545545//         this->relDirection.debug();
  • orxonox/trunk/src/lib/math/vector.cc

    r5004 r5005  
    7676   and right should be -x or +x respectively or the mesh wont rotate correctly.
    7777 *
    78  * @TODO !!!OPTIMIZE THIS!!!
     78 * @TODO !!! OPTIMIZE THIS !!!
    7979*/
    8080Quaternion::Quaternion (const Vector& dir, const Vector& up)
  • orxonox/trunk/src/world_entities/camera.cc

    r5004 r5005  
    146146       this->setRelCoorSoft(4, 0, 0);
    147147       this->target->setRelCoorSoft(10,0,0);
    148       //this->target->setRelDirSoft(Quaternion(M_PI/4.0, Vector(0,1,0)));
     148//      this->target->setRelDirSoft(Quaternion(M_PI/4.0, Vector(0,1,0)));
    149149      break;
    150150    case VIEW_LEFT:
  • orxonox/trunk/src/world_entities/camera.h

    r5004 r5005  
    11/*!
    2     \file camera.h
    3   * Viewpoint controlling class definitions
     2 * @file camera.h
     3 * Viewpoint controlling class definitions
    44*/
    55
     
    2828//! Camera
    2929/**
    30    This class controls the viewpoint from which the World is rendered.
     30 * This class controls the viewpoint from which the World is rendered.
    3131*/
    3232class Camera : public PNode, public EventListener
  • orxonox/trunk/src/world_entities/player.cc

    r5004 r5005  
    121121void Player::init()
    122122{
    123 //  this->setAbsDir(Quaternion(M_PI, Vector(1,0,0)));
     123  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
    124124  this->setClassID(CL_PLAYER, "Player");
    125125  travelSpeed = 15.0;
Note: See TracChangeset for help on using the changeset viewer.