- Timestamp:
- Jun 1, 2005, 8:15:59 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.in
r4432 r4438 426 426 esac; \ 427 427 done; \ 428 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/Makefile'; \428 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ 429 429 cd $(top_srcdir) && \ 430 $(AUTOMAKE) -- gnusrc/Makefile430 $(AUTOMAKE) --foreign src/Makefile 431 431 .PRECIOUS: Makefile 432 432 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/Makefile.in
r4432 r4438 185 185 esac; \ 186 186 done; \ 187 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/Makefile'; \187 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/Makefile'; \ 188 188 cd $(top_srcdir) && \ 189 $(AUTOMAKE) -- gnusrc/lib/Makefile189 $(AUTOMAKE) --foreign src/lib/Makefile 190 190 .PRECIOUS: Makefile 191 191 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/coord/pilot_node.cc
r4424 r4438 34 34 this->setClassID(CL_PILOT_PARENT, "PilotNode"); 35 35 36 travelSpeed = 60.0;36 travelSpeed = 30.0; 37 37 velocity = new Vector(); 38 38 bUp = bDown = bLeft = bRight = false; … … 66 66 /* FIXME: calculating the direction and orthDirection every timeSlice is redundant! save it somewhere */ 67 67 /* calculate the direction in which the craft is heading */ 68 Vector direction (1.0, 0.0, 0.0);68 //Vector direction (1.0, 0.0, 0.0); 69 69 //direction = this->absDirection.apply (direction); 70 Vector orthDirection (0.0, 0.0, 1.0);70 //Vector orthDirection (0.0, 0.0, 1.0); 71 71 //orthDirection = orthDirection.cross (direction); 72 72 73 if( this->bUp) 74 accel = accel+(direction*acceleration); 75 if( this->bDown) 76 accel = accel -(direction*acceleration); 77 if( this->bLeft) 78 accel = accel - (orthDirection*acceleration); 79 if( this->bRight) 80 accel = accel + (orthDirection*acceleration); 73 Quaternion q = this->getAbsDir(); 74 Vector direction(1,0,0); 75 direction = q.apply(direction); 81 76 82 Vector move = accel * time; 83 this->shiftCoor (move); 77 84 78 85 Quaternion q1(M_PI/4 * this->pitch/400.0, Vector(1,0,0)); 86 this->shiftDir(q1); 79 Vector orthDirection(0,0,1); 80 orthDirection = q.apply(orthDirection); 81 82 if( this->bUp) 83 accel = accel+(direction*acceleration); 84 if( this->bDown) 85 accel = accel -(direction*acceleration); 86 if( this->bLeft) 87 accel = accel - (orthDirection*acceleration); 88 if( this->bRight) 89 accel = accel + (orthDirection*acceleration); 90 91 Vector move = accel * time; 92 this->shiftCoor (move); 93 94 Quaternion q1(-M_PI/4 * this->roll/40000.0, Vector(0,0,1)); 95 Quaternion q2(-M_PI/4 * this->pitch/30000.0, Vector(0,1,0)); 96 //this->shiftDir(q1*q2); 97 this->shiftDir(q1*q2); 87 98 } 88 99 … … 108 119 else if( event.type == EV_MOUSE_MOTION) 109 120 { 110 PRINTF(0)("Mouse moved by %d,%d to (%d,%d)\n", event.xRel, event.yRel,111 event.x, event.y);112 121 this->pitch = event.x - 400; 113 122 this->roll = event.y - 300; -
orxonox/trunk/src/lib/graphics/Makefile.in
r4432 r4438 177 177 esac; \ 178 178 done; \ 179 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/graphics/Makefile'; \179 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/graphics/Makefile'; \ 180 180 cd $(top_srcdir) && \ 181 $(AUTOMAKE) -- gnusrc/lib/graphics/Makefile181 $(AUTOMAKE) --foreign src/lib/graphics/Makefile 182 182 .PRECIOUS: Makefile 183 183 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/graphics/importer/Makefile.in
r4432 r4438 181 181 esac; \ 182 182 done; \ 183 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/graphics/importer/Makefile'; \183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/graphics/importer/Makefile'; \ 184 184 cd $(top_srcdir) && \ 185 $(AUTOMAKE) -- gnusrc/lib/graphics/importer/Makefile185 $(AUTOMAKE) --foreign src/lib/graphics/importer/Makefile 186 186 .PRECIOUS: Makefile 187 187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/Makefile.in
r4432 r4438 241 241 esac; \ 242 242 done; \ 243 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/gui/Makefile'; \243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/gui/Makefile'; \ 244 244 cd $(top_srcdir) && \ 245 $(AUTOMAKE) -- gnusrc/lib/gui/Makefile245 $(AUTOMAKE) --foreign src/lib/gui/Makefile 246 246 .PRECIOUS: Makefile 247 247 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/particles/Makefile.in
r4432 r4438 209 209 esac; \ 210 210 done; \ 211 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/particles/Makefile'; \211 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/particles/Makefile'; \ 212 212 cd $(top_srcdir) && \ 213 $(AUTOMAKE) -- gnusrc/lib/particles/Makefile213 $(AUTOMAKE) --foreign src/lib/particles/Makefile 214 214 .PRECIOUS: Makefile 215 215 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/physics/Makefile.in
r4432 r4438 217 217 esac; \ 218 218 done; \ 219 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/physics/Makefile'; \219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/physics/Makefile'; \ 220 220 cd $(top_srcdir) && \ 221 $(AUTOMAKE) -- gnusrc/lib/physics/Makefile221 $(AUTOMAKE) --foreign src/lib/physics/Makefile 222 222 .PRECIOUS: Makefile 223 223 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/tinyxml/Makefile.in
r4432 r4438 204 204 esac; \ 205 205 done; \ 206 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/tinyxml/Makefile'; \206 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/tinyxml/Makefile'; \ 207 207 cd $(top_srcdir) && \ 208 $(AUTOMAKE) -- gnusrc/lib/tinyxml/Makefile208 $(AUTOMAKE) --foreign src/lib/tinyxml/Makefile 209 209 .PRECIOUS: Makefile 210 210 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/story_entities/world.cc
r4434 r4438 645 645 this->pilotNode->addChild(this->localPlayer); 646 646 this->pilotNode->addChild(this->localCamera); 647 this->localCamera->lookAt(this-> pilotNode);647 this->localCamera->lookAt(this->localPlayer); 648 648 649 649 this->eventHandler->subscribe(this->pilotNode, ES_GAME, KeyMapper::PEV_UP); -
orxonox/trunk/src/subprojects/Makefile.in
r4432 r4438 186 186 esac; \ 187 187 done; \ 188 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/Makefile'; \188 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/Makefile'; \ 189 189 cd $(top_srcdir) && \ 190 $(AUTOMAKE) -- gnusrc/subprojects/Makefile190 $(AUTOMAKE) --foreign src/subprojects/Makefile 191 191 .PRECIOUS: Makefile 192 192 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/gui/Makefile.in
r4432 r4438 229 229 esac; \ 230 230 done; \ 231 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/gui/Makefile'; \231 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/gui/Makefile'; \ 232 232 cd $(top_srcdir) && \ 233 $(AUTOMAKE) -- gnusrc/subprojects/gui/Makefile233 $(AUTOMAKE) --foreign src/subprojects/gui/Makefile 234 234 .PRECIOUS: Makefile 235 235 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/importer/Makefile.in
r4432 r4438 228 228 esac; \ 229 229 done; \ 230 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/importer/Makefile'; \230 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/importer/Makefile'; \ 231 231 cd $(top_srcdir) && \ 232 $(AUTOMAKE) -- gnusrc/subprojects/importer/Makefile232 $(AUTOMAKE) --foreign src/subprojects/importer/Makefile 233 233 .PRECIOUS: Makefile 234 234 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/particles/Makefile.in
r4432 r4438 257 257 esac; \ 258 258 done; \ 259 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/particles/Makefile'; \259 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/particles/Makefile'; \ 260 260 cd $(top_srcdir) && \ 261 $(AUTOMAKE) -- gnusrc/subprojects/particles/Makefile261 $(AUTOMAKE) --foreign src/subprojects/particles/Makefile 262 262 .PRECIOUS: Makefile 263 263 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/testmain/Makefile.in
r4432 r4438 197 197 esac; \ 198 198 done; \ 199 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/testmain/Makefile'; \199 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/testmain/Makefile'; \ 200 200 cd $(top_srcdir) && \ 201 $(AUTOMAKE) -- gnusrc/subprojects/testmain/Makefile201 $(AUTOMAKE) --foreign src/subprojects/testmain/Makefile 202 202 .PRECIOUS: Makefile 203 203 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
Note: See TracChangeset
for help on using the changeset viewer.