Changeset 6142 in orxonox.OLD for trunk/src/world_entities/weapons/guided_missile.cc
- Timestamp:
- Dec 16, 2005, 7:13:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/guided_missile.cc
r6078 r6142 85 85 void GuidedMissile::activate() 86 86 { 87 State::getWorldEntityList()->add(this);88 87 if (unlikely(GuidedMissile::trailParticles == NULL)) 89 88 { … … 129 128 this->lifeCycle = 0.0; 130 129 131 // GarbageCollector::getInstance()->collect(this); 132 State::getWorldEntityList()->remove(this); 130 this->toList(OM_DEAD); 133 131 this->removeNode(); 134 132 GuidedMissile::fastFactory->kill(this); … … 152 150 if (this->target != NULL && this->target->getParent() != PNode::getNullParent()) 153 151 { 154 printf("========%s::%s\n", target->getParent()->getClassName(), target->getParent()->getName() );155 152 velocity += ((target->getAbsCoor() - this->getAbsCoor()).getNormalized())*agility; 156 153 float speed = velocity.len();
Note: See TracChangeset
for help on using the changeset viewer.