Changeset 3643 in orxonox.OLD for orxonox/trunk/src/camera.cc
- Timestamp:
- Mar 23, 2005, 11:20:29 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/camera.cc
r3642 r3643 104 104 case VIEW_NORMAL: 105 105 this->toFovy = 60.0; 106 this->toRelCoor = Vector 106 this->toRelCoor = Vector(-10, 5, 0); 107 107 break; 108 108 case VIEW_BEHIND: 109 this->toFovy = 90.0;110 this->toRelCoor = Vector (-6, 2, 0);109 this->toFovy = 120.0; 110 this->toRelCoor = Vector(-7, 0, 0); 111 111 break; 112 112 case VIEW_FRONT: 113 113 this->toFovy = 95.0; 114 this->toRelCoor = Vector (10, 5, 0);114 this->toRelCoor = Vector(12, 5, 0); 115 115 break; 116 116 case VIEW_LEFT: 117 117 this->toFovy = 90; 118 this->toRelCoor = Vector 118 this->toRelCoor = Vector(0, 2, -10); 119 119 break; 120 120 case VIEW_RIGHT: 121 121 this->toFovy = 90; 122 this->toRelCoor = Vector 122 this->toRelCoor = Vector(0, 2, 10); 123 123 break; 124 case VIEW_TOP: 125 this->toFovy= 120; 126 this->toRelCoor = Vector(0, 4, 0); 124 127 } 125 128 } … … 132 135 void Camera::tick(float dt) 133 136 { 134 dt /= 1000;137 dt /= 500; 135 138 this->fovy += (this->toFovy - this->fovy) * dt; 136 139 Vector tmp = this->getRelCoor() + (this->toRelCoor - this->getRelCoor()) * dt;
Note: See TracChangeset
for help on using the changeset viewer.