Changeset 5913 in orxonox.OLD for branches/spaceshipcontrol
- Timestamp:
- Dec 4, 2005, 2:50:01 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/weapons/aiming_turret.cc
r5819 r5913 93 93 94 94 this->setCapability(WTYPE_ALLDIRS | WTYPE_TURRET); 95 this->setProjectileType(CL_ ROCKET);95 this->setProjectileType(CL_GUIDED_MISSILE); 96 96 97 97 … … 142 142 return; 143 143 144 144 pj->setVelocity(/*this->getVelocity()+*/(this->getAbsDir().apply(Vector(1,0,0))*250.0 + VECTOR_RAND(13) 145 145 /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity()); 146 146 147 pj->setTarget(this->target->getParent()); 147 148 pj->setParent(NullParent::getInstance()); 148 149 pj->setAbsCoor(this->getEmissionPoint()); -
branches/spaceshipcontrol/src/world_entities/weapons/guided_missile.cc
r5779 r5913 49 49 this->energyMax = 10; 50 50 this->lifeSpan = 5; 51 this->agility = 5;51 this->agility = 20; 52 52 this->maxVelocity = 100; 53 53 … … 151 151 void GuidedMissile::tick (float time) 152 152 { 153 printf("test\n"); 153 154 //Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1); 154 155 if (target != NULL && target->getParent() != NullParent::getInstance())
Note: See TracChangeset
for help on using the changeset viewer.