[ create a new paste ] login | about

Link: http://codepad.org/amx8UBqc    [ raw code | fork ]

bavvujmanas - C++, pasted on Oct 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Inside Client::Update()
....
      // send the speed commands
      if(threed)
        pp3->SetSpeed(cont->speed, cont->turnrate);
      if(use_car)
        pp->SetCarlike(cont->speed, cont->turnrate);
      else
      {
        /// *** This is the code I added.
        pp->RequestGeom();
        player_pose3d_t pose = pp->GetOffset();
        printf("%5.3f,%5.3f. px:%5.3f, py:%5.3f, pz:%5.3f\n",pp->GetXPos(), pp->GetYPos(), pose.px, pose.py, pose.pz);
        /// *** end
        pp->SetSpeed(cont->speed, cont->turnrate);
      }
....


Create a new paste based on this one


Comments: