Changeset 6807 in orxonox.OLD for trunk/src/world_entities/camera.cc
- Timestamp:
- Jan 28, 2006, 2:57:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r6780 r6807 111 111 case VIEW_NORMAL: 112 112 this->toFovy = 60.0; 113 /* this->setParentSoft("TrackNode");114 this->target->setParentSoft("TrackNode"); */115 113 this->setRelCoorSoft(-10, 5, 0); 116 114 this->target->setRelCoorSoft(0,0,0); 117 115 break; 118 116 case VIEW_BEHIND: 119 // this->toFovy = 120.0;120 // this->setRelCoorSoft(Vector(3.5, 0, 0));121 // this->target->setRelCoorSoft(Vector(10,0,0));122 123 // if (!strcmp(this->target->getParent()->getName(), "Player"))124 // this->target->setParentSoft("TrackNode");125 // else126 // this->target->setParentSoft("Player");127 // this->getParent()->debugNode(0);128 129 // this->setParent("main-Turret");130 // this->setParentMode(PNODE_ALL);131 // this->target->setParentSoft("Player");132 133 117 break; 134 118 case VIEW_FRONT: 135 119 this->toFovy = 120.0; 136 /* this->setParentSoft("Player");137 this->target->setParentSoft("Player");*/138 120 this->setRelCoorSoft(4, 0, 0, 5); 139 121 this->target->setRelCoorSoft(Vector(10,0,0), 5); 140 // this->target->setRelDirSoft(Quaternion(M_PI/4.0, Vector(0,1,0)));141 122 break; 142 123 case VIEW_LEFT: 143 124 this->toFovy = 90; 144 /* this->setParentSoft("TrackNode");145 this->target->setParentSoft("TrackNode");*/146 125 this->setRelCoorSoft(0, 1, -10, .5); 147 126 this->target->setRelCoorSoft(0,0,0); … … 149 128 case VIEW_RIGHT: 150 129 this->toFovy = 90; 151 /* this->setParentSoft("TrackNode");152 this->target->setParentSoft("TrackNode");*/153 130 this->setRelCoorSoft(Vector(0, 1, 10)); 154 131 this->target->setRelCoorSoft(0,0,0); … … 156 133 case VIEW_TOP: 157 134 this->toFovy= 120; 158 /* this->setParentSoft("TrackNode");159 this->target->setParentSoft("TrackNode");*/160 135 this->setRelCoorSoft(Vector(30, 50, 0)); 161 136 this->target->setRelCoorSoft(35,0,0);
Note: See TracChangeset
for help on using the changeset viewer.