Changeset 9206 in orxonox.OLD for branches/presentation/src/world_entities/space_ships
- Timestamp:
- Jul 5, 2006, 10:47:48 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
r9198 r9206 86 86 //weapons: 87 87 Weapon* wpRight = dynamic_cast<Weapon*>(Factory::fabricate(CL_LASER_CANNON)); 88 wpRight->setName(" testGunRight");88 wpRight->setName("Cannon_Right"); 89 89 Weapon* wpLeft = dynamic_cast<Weapon*>(Factory::fabricate(CL_LASER_CANNON)); 90 wpLeft->setName("testGun Left"); 91 //Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_HYPERBLASTER)); 90 wpLeft->setName("Cannon_Left"); 91 92 Weapon* turretLeft = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET)); 93 wpRight->setName("Turret_Left"); 94 Weapon* turretRight = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET)); 95 wpLeft->setName("Turret_Right"); 92 96 93 97 // cannon->setName("BFG"); … … 95 99 this->addWeapon(wpLeft, 1, 0); 96 100 this->addWeapon(wpRight,1 ,1); 101 this->addWeapon(turretLeft, 1, 2); 102 this->addWeapon(turretRight, 1, 3); 103 97 104 //this->addWeapon(cannon, 0, 2); 98 105 … … 197 204 198 205 /// TODO: THESE ARE TOO MUCH 199 this->getWeaponManager().setSlotPosition(3, Vector(- 1.63, .678, -.652));200 this->getWeaponManager().setSlotDirection(3, Quaternion(- 24/180 * M_PI, Vector(1,0,0)));201 202 this->getWeaponManager().setSlotPosition(4, Vector(- 1.63, .678, .652));203 this->getWeaponManager().setSlotDirection(4, Quaternion( 24/180 * M_PI, Vector(1,0,0)));206 this->getWeaponManager().setSlotPosition(3, Vector(-0.351, -.238, 1.406) * 5.0); 207 this->getWeaponManager().setSlotDirection(3, Quaternion(-122/180 * M_PI, Vector(0,1,0))); 208 209 this->getWeaponManager().setSlotPosition(4, Vector(-0.351, -.238, -1.406) * 5.0); 210 this->getWeaponManager().setSlotDirection(4, Quaternion(122/180 * M_PI, Vector(0,1,0))); 204 211 205 212 this->cameraNode.setRelCoor(1,5,0);
Note: See TracChangeset
for help on using the changeset viewer.