codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
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); } ....
Private
[
?
]
Run code
Submit