Changeset 6114 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/weapons
- Timestamp:
- Dec 14, 2005, 5:51:23 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities/weapons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/weapons/crosshair.cc
r5978 r6114 67 67 this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0); 68 68 69 //this->setBindNode(this);69 this->setBindNode(this); 70 70 this->material = new Material; 71 71 … … 166 166 { 167 167 glPushMatrix(); 168 glTranslatef( GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2, 0);168 glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0); 169 169 170 170 glRotatef(this->getAbsDir2D(), 0,0,1); -
branches/spaceshipcontrol/src/world_entities/weapons/laser.cc
r5994 r6114 45 45 this->energyMin = 1; 46 46 this->energyMax = 10; 47 this->lifeSpan = 1.0;47 this->lifeSpan = 5.0; 48 48 49 49 this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5); -
branches/spaceshipcontrol/src/world_entities/weapons/test_gun.cc
r6022 r6114 186 186 pj->setParent(NullParent::getInstance()); 187 187 188 pj->setVelocity(this->get Velocity() + this->getAbsDir().apply(Vector(1,0,0))*50+VECTOR_RAND(5));188 pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*250 + VECTOR_RAND(5)); 189 189 190 190 pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset
for help on using the changeset viewer.