Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4989 in orxonox.OLD for orxonox/trunk


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

orxonox/trunk: softPNode finished for Movement only

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

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

    r4988 r4989  
    420420void PNode::softReparent(PNode* parentNode)
    421421{
     422  //this->setRelCoorSoft(this->getRelCoor());
    422423  if (likely(this->toPosition == NULL))
     424  {
    423425    this->toPosition = new Vector();
    424 
    425   *this->toPosition = this->getRelCoor();
     426    *this->toPosition = this->getRelCoor();
     427  }
     428
    426429
    427430  Vector tmp = this->getAbsCoor();
  • orxonox/trunk/src/world_entities/camera.cc

    r4988 r4989  
    127127  //    this->target->setRelCoorSoft(Vector(10,0,0));
    128128
    129       this->target->softReparent("Player");
     129      if (!strcmp(this->target->getParent()->getName(), "Player"))
     130        this->target->softReparent("TrackNode");
     131      else
     132        this->target->softReparent("Player");
     133
    130134//      this->setParent("main-Turret");
    131135//      this->setParentMode(PNODE_ALL);
Note: See TracChangeset for help on using the changeset viewer.