Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 5, 2006, 8:14:40 AM (19 years ago)
Author:
patrick
Message:

less debug and better init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r9192 r9194  
    233233    this->initWeapon = true;
    234234
     235    State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
     236
     237    this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
     238    this->getWeaponManager().getFixedTarget()->setParent(&this->cameraNode);
     239    this->getWeaponManager().getFixedTarget()->setParentMode(PNODE_ROTATE_AND_MOVE);
     240
     241
     242    this->aimingSystem->toList(OM_GROUP_01);
     243    this->aimingSystem->setParent(&this->cameraNode);
     244    this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
     245
     246
    235247    AABB* box = this->getModelAABB();
    236248    if( box != NULL)
     
    240252      State::getCameraTargetNode()->setRelCoor(10, box->halfLength[1] * f, 0);
    241253
    242       State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
    243       this->cameraNode.setParentMode(PNODE_ROTATE_AND_MOVE);
    244       this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
    245 
    246 
    247254      this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * f - 0.7, 1.1));
    248255      this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0));
    249 
    250       this->aimingSystem->toList(OM_GROUP_01);
    251       this->aimingSystem->setParent(&this->cameraNode);
    252       this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
    253256    }
    254257  }
Note: See TracChangeset for help on using the changeset viewer.