Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2101 in orxonox.OLD for orxonox/branches/chris/src/player.cc


Ignore:
Timestamp:
Jul 10, 2004, 2:00:04 PM (21 years ago)
Author:
chris
Message:

orxonox/branches/chris: Finished the "GETITTOCOMPILE" project… compiling should work now, but linking is a different story

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/player.cc

    r2096 r2101  
    1616*/
    1717
    18 #include <iostream>
    19 #include <stdlib.h>
    20 #include <GL/glut.h>
    21 
    2218#include "player.h"
     19#include "stdincl.h"
     20#include "collision.h"
    2321
    2422using namespace std;
     
    4038        bFire = false;
    4139        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)));
    4341}
    4442
     
    4644{
    4745        // movement
    48         move (float time);
     46        move (time);
    4947}
    5048
     
    104102        // a = acceleration
    105103       
    106         l->pos = l->pos + velocity*time + (accel*(0.5*t*t)));
     104        l->pos = l->pos + velocity*time + (accel*(0.5*time*time));
    107105        l->dist += travel_speed * time;
    108106       
    109         velocity += accel * time;
     107        velocity = velocity + (accel * time);
    110108}
    111109
Note: See TracChangeset for help on using the changeset viewer.