Changeset 3957 in orxonox.OLD for orxonox/branches/particleEngine/src/world_entities
- Timestamp:
- Apr 25, 2005, 2:25:27 PM (20 years ago)
- Location:
- orxonox/branches/particleEngine/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/world_entities/camera.cc
r3869 r3957 139 139 if (tmpFovy > .001) 140 140 this->fovy += (this->toFovy - this->fovy) * dt; 141 Vector tmpPos = (this->toRelCoor - *this->getRelCoor()) * dt;141 Vector tmpPos = (this->toRelCoor - this->getRelCoor()) * dt; 142 142 if (tmpPos.len() >= .001) 143 143 { 144 tmpPos = tmpPos + *this->getRelCoor();144 tmpPos = tmpPos + this->getRelCoor(); 145 145 this->setRelCoor(tmpPos); 146 146 } -
orxonox/branches/particleEngine/src/world_entities/player.cc
r3881 r3957 188 188 //orthDirection = orthDirection.cross (direction); 189 189 190 if( this->bUp && this->getRelCoor() ->x < 20)190 if( this->bUp && this->getRelCoor().x < 20) 191 191 accel = accel+(direction*acceleration); 192 if( this->bDown && this->getRelCoor() ->x > -5)192 if( this->bDown && this->getRelCoor().x > -5) 193 193 accel = accel-(direction*acceleration); 194 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor() ->z*2)194 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2) 195 195 accel = accel - (orthDirection*acceleration); 196 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor() ->z*2)196 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2) 197 197 accel = accel + (orthDirection*acceleration); 198 198 if( this->bAscend )
Note: See TracChangeset
for help on using the changeset viewer.