Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4988 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Aug 12, 2005, 4:25:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: using, and optimizing soft-PNode through Camera

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

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

    r4987 r4988  
    187187
    188188  *this->toPosition = relCoordSoft;
    189 
    190   this->toPosition->debug();
    191   printf("=-==============\n");
    192189}
    193190
     
    426423    this->toPosition = new Vector();
    427424
    428   *this->toPosition = parentNode->getAbsCoor() + this->getRelCoor();
     425  *this->toPosition = this->getRelCoor();
    429426
    430427  Vector tmp = this->getAbsCoor();
     
    494491void PNode::update (float dt)
    495492{
    496 
    497 
    498493  if( likely(this->parent != NULL))
    499494    {
     
    506501        {
    507502          this->shiftCoor(moveVect);
    508           moveVect.debug();
    509503        }
    510504        else
     
    512506          delete this->toPosition;
    513507          this->toPosition = NULL;
    514           PRINTF(0)("SmoothMove of %s finished\n", this->getName());
     508          PRINTF(5)("SmoothMove of %s finished\n", this->getName());
    515509        }
    516510      }
  • orxonox/trunk/src/world_entities/camera.cc

    r4987 r4988  
    124124    case VIEW_BEHIND:
    125125//      this->toFovy = 120.0;
    126       this->setRelCoorSoft(Vector(3.5, 0, 0));
    127       this->target->setRelCoorSoft(Vector(10,0,0));
    128 
    129       /*this->target->softReparent("main-Turret");
    130       this->setParent("main-Turret");
    131       this->setParentMode(PNODE_ALL);
    132       this->target->setParent("Crosshair");*/
     126//      this->setRelCoorSoft(Vector(3.5, 0, 0));
     127  //    this->target->setRelCoorSoft(Vector(10,0,0));
     128
     129      this->target->softReparent("Player");
     130//      this->setParent("main-Turret");
     131//      this->setParentMode(PNODE_ALL);
     132//      this->target->softReparent("Player");
     133
    133134      break;
    134135    case VIEW_FRONT:
Note: See TracChangeset for help on using the changeset viewer.