Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4991 in orxonox.OLD


Ignore:
Timestamp:
Aug 12, 2005, 5:22:08 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: the thing with the rotation is again above my insight…
have to do this later, but the effect works
hit 2 to focus to the Player and realease 2 to focus back again

Location:
orxonox/trunk/src/lib/coord
Files:
2 edited

Legend:

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

    r4990 r4991  
    483483  parentNode->addChild(this);
    484484
     485/*  if (this->parentMode & PNODE_ROTATE_MOVEMENT)
     486  this->setRelCoor(parent->getRelDir().apply(tmpV - parent->getAbsCoor()));
     487  else*/
    485488  this->setRelCoor(tmpV - parentNode->getAbsCoor());
     489
    486490  this->setRelDir(tmpQ - parentNode->getAbsDir());
    487491}
  • orxonox/trunk/src/lib/coord/p_node.h

    r4990 r4991  
    4141// special linkage modes
    4242  PNODE_ALL                   =   3,    //!< Moves all children around the center of their parent, and also rotates their centers
    43   PNODE_ROTATE_AND_MOVE       =   5    //!< Rotates all children around their axis, and moves them as the Parent Moves, but does not rotate around the center of their parent.
     43  PNODE_ROTATE_AND_MOVE       =   5     //!< Rotates all children around their axis, and moves them as the Parent Moves, but does not rotate around the center of their parent.
    4444
    4545} PARENT_MODE;
Note: See TracChangeset for help on using the changeset viewer.