Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 12, 2004, 10:28:25 PM (21 years ago)
Author:
chris
Message:

orxonox/branches/chris: Implemented quaternion class… but something is still f up… the camera keeps pointing into the wrong direction… matrix rotation calculation seems not to be my strenght…

File:
1 edited

Legend:

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

    r2105 r2112  
    3333void Player::post_spawn ()
    3434{
    35         travel_speed = 1.0;
     35        travel_speed = 10.0;
    3636        velocity = Vector();
    3737        bUp = bDown = bLeft = bRight = bAscend = bDescend = false;
     
    7171{
    7272        glMatrixMode(GL_MODELVIEW);
    73         float matrix[16];
    74   get_placement()->w.glmatrix (matrix);
    75   glLoadMatrixf (matrix);
     73        float matrix[4][4];
     74  get_placement()->w.matrix (matrix);
     75  glLoadMatrixf ((float*)matrix);
    7676
    7777        glTranslatef(get_placement()->r.x,get_placement()->r.y,get_placement()->r.z);
     
    8585        glVertex3f(-1,+0.5,0);
    8686        glEnd();
     87       
     88        printf("Player@%f/%f/%f\n", get_placement()->r.x, get_placement()->r.y, get_placement()->r.z);
    8789}
    8890
     
    9092{
    9193        *locbuf = *get_location();
    92         locbuf->dist += 5.0;
     94        //locbuf->dist += 5.0;
    9395}
    9496
Note: See TracChangeset for help on using the changeset viewer.