- Timestamp:
- May 26, 2011, 3:44:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/portals2/src/modules/portals/PortalEndPoint.cc
r8511 r8599 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * > www.orxonox.net < 4 * 5 * 6 * License notice: 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 2 11 * of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 * 22 * Author: 23 * Andreas Büchel 24 * Co-authors: 25 * ... 26 * 27 */ 28 1 29 #include "PortalEndPoint.h" 2 30 #include "core/XMLPort.h" … … 64 92 if(originatingTrigger == 0) 65 93 { 66 // COUT(1) << "originator no DistanceMultiTrigger\n" << std::endl;67 94 return true; 68 95 } … … 106 133 this->jumpOutTimes_[entity] = std::time(0); 107 134 this->recentlyJumpedOut_.insert(entity); 108 135 136 // adjust 109 137 entity->setPosition(this->getWorldPosition()); 110 138 entity->rotate(this->getWorldOrientation()); 111 139 entity->setVelocity(this->getWorldOrientation() * entity->getVelocity()); 112 entity->setVelocity(entity->getVelocity() * 1.5);113 140 } 114 141
Note: See TracChangeset
for help on using the changeset viewer.