Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 6:02:47 PM (18 years ago)
Author:
nicolasc
Message:

crosshair moves, shot do too, but not exactly where they should

Location:
branches/presentation/src/world_entities/space_ships
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/space_ship.cc

    r10715 r10719  
    9292                        ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY))
    9393                        ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ))
    94                         //->addMethod("setCameraSpeed", Executor1<SpaceShip, lua_State*, float>(&SpaceShip::setCameraSpeed))
     94                        //->addMethod("setCameraSpeed", Executor1<SpVector(1,0,0)aceShip, lua_State*, float>(&SpaceShip::setCameraSpeed))
    9595                        ->addMethod("pause", Executor1<WorldEntity, lua_State*, bool>(&WorldEntity::pauseTrack))
    9696                        ->addMethod("setCameraDist", Executor1<SpaceShip, lua_State*, float>(&SpaceShip::setCameraDistance))
     
    592592    this->yMouse += event.yRel;
    593593//     printf("Mouse Coord: %f, %f\n", this->xMouse, this->yMouse);
    594     this->weaponMan.getFixedTarget()->setRelCoor(10000, -10 * this->mouseSensitivity * yMouse, 10 * this->mouseSensitivity * xMouse);
    595     this->secWeaponMan.getFixedTarget()->setRelCoor(10000, -10 * this->mouseSensitivity * yMouse, 10 * this->mouseSensitivity * xMouse);
     594    this->weaponMan.getFixedTarget()->setRelCoor(100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse);
     595    this->secWeaponMan.getFixedTarget()->setRelCoor(100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse);
    596596  }
    597597  else if (!(State::getCamera()->getEventHandling()))
  • branches/presentation/src/world_entities/space_ships/space_ship.h

    r10715 r10719  
    7575    inline void loadWeapon(float regen) { this->weaponEnergyRegen = regen; };
    7676
    77     void addWeaponToSlot(int wm, int config, int slot, const std::string& weaponName);
     77//     void addWeaponToSlot(int wm, int config, int slot, const std::string& weaponName);
    7878
    7979    inline PNode* getTravelNode() { return this->travelNode; };
Note: See TracChangeset for help on using the changeset viewer.