Changeset 6734 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities
- Timestamp:
- Jan 25, 2006, 7:26:21 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/projectiles/guided_missile.cc
r6700 r6734 43 43 this->setHealthMax(10); 44 44 this->lifeSpan = 10.0; 45 this->agility = 5;45 this->agility = 10; 46 46 this->maxVelocity = 75; 47 47 -
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r6724 r6734 140 140 controlVelocityX = 25; 141 141 controlVelocityY = 150; 142 shipInertia = 0.5 ;142 shipInertia = 1.5 ; 143 143 // cycle = 0.0; 144 144 … … 317 317 318 318 //orient the spaceship in direction of the mouse 319 rotQuat = Quaternion::quatSlerp( this->getAbsDir(), mouseDir, fabsf(time)*shipInertia);319 rotQuat = Quaternion::quatSlerp( this->getAbsDir(), mouseDir, 0.5);//fabsf(time)*shipInertia); 320 320 if (this->getAbsDir().distance(rotQuat) > 0.00000000000001) 321 321 this->setAbsDir( rotQuat); -
branches/spaceshipcontrol/src/world_entities/weapons/aim.cc
r6724 r6734 82 82 this->anim->addKeyFrame(50, .01, ANIM_LINEAR); 83 83 84 84 85 /* this->text = new Text(); 85 86 this->text->setLayer(this->getLayer()); … … 114 115 diffVec = ( (*entity)->getAbsCoor() - this->source->getAbsCoor() ); 115 116 116 if ( diffVec.len() < range && acos( (this->source->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) )< angle)117 if ( diffVec.len() < range && acos( (this->source->getParent()->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) ) < angle) 117 118 { 118 119 //if (this->getParent() != (*entity)) … … 170 171 if(this->getParent() == PNode::getNullParent() || 171 172 diffVec.len() > range || 172 ( acos( (this->source->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) ) > angle))173 ( acos( (this->source->getParent()->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) ) > angle)) 173 174 { 175 this->setParentSoft(PNode::getNullParent(),5); 174 176 this->searchTarget(); 175 177 } … … 195 197 // &objY, 196 198 // &objZ ); 197 // 199 //aa 198 200 // this->setAbsCoor(objX, objY, objZ); 199 201 } -
branches/spaceshipcontrol/src/world_entities/weapons/aiming_turret.cc
r6724 r6734 81 81 animation2->setInfinity(ANIM_INF_CONSTANT); 82 82 83 this->setStateDuration(WS_SHOOTING, . 1);83 this->setStateDuration(WS_SHOOTING, .9); 84 84 this->setStateDuration(WS_RELOADING, .1); 85 85 this->setStateDuration(WS_ACTIVATING, .4); … … 98 98 this->target = new Aim(this); 99 99 this->target->setVisibility(false); 100 this->target->setRange( 1000);101 this->target->setAngle(M_PI_ 4);100 this->target->setRange(400); 101 this->target->setAngle(M_PI_2); 102 102 } 103 103 -
branches/spaceshipcontrol/src/world_entities/weapons/targeting_turret.cc
r6724 r6734 93 93 this->target = new Aim(this); 94 94 this->target->setVisibility(false); 95 this->target->setRange(100 );96 this->target->setAngle(M_PI_4 /16);95 this->target->setRange(1000); 96 this->target->setAngle(M_PI_4); 97 97 this->lockedTime = 0; 98 98 this->neededLockTime = 2;
Note: See TracChangeset
for help on using the changeset viewer.