Changeset 2101 in orxonox.OLD for orxonox/branches/chris/src/player.cc
- Timestamp:
- Jul 10, 2004, 2:00:04 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/player.cc
r2096 r2101 16 16 */ 17 17 18 #include <iostream>19 #include <stdlib.h>20 #include <GL/glut.h>21 22 18 #include "player.h" 19 #include "stdincl.h" 20 #include "collision.h" 23 21 24 22 using namespace std; … … 40 38 bFire = false; 41 39 acceleration = 10.0; 42 set_collision (new CollisionCluster (1.0, Vector(0,0,0)) ;40 set_collision (new CollisionCluster (1.0, Vector(0,0,0))); 43 41 } 44 42 … … 46 44 { 47 45 // movement 48 move ( floattime);46 move (time); 49 47 } 50 48 … … 104 102 // a = acceleration 105 103 106 l->pos = l->pos + velocity*time + (accel*(0.5*t *t)));104 l->pos = l->pos + velocity*time + (accel*(0.5*time*time)); 107 105 l->dist += travel_speed * time; 108 106 109 velocity += accel * time;107 velocity = velocity + (accel * time); 110 108 } 111 109
Note: See TracChangeset
for help on using the changeset viewer.