Show
Ignore:
Timestamp:
02/28/10 22:45:14 (6 months ago)
Author:
gaul@…
Message:
  • ball hits paddle (keep bouncin'!)
  • NOTE: physics are computed on client only (TODO: sync)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cpp-ode/src/libmmpong/netgame_ode_pong.h

    r538 r540  
    5555                                barbot=srv_ent_create<ODEBox>(); 
    5656                        bartop->geom.setLengths(2.0,0.05,0.05); 
    57                         bartop->setPosition(0.0, 1.05, 0.0); 
     57                        bartop->geom.setPosition(0.0, 1.05, 0.0); 
    5858                        barbot->geom.setLengths(2.0,0.05,0.05); 
    59                         barbot->setPosition(0.0, -1.05, 0.0); 
     59                        barbot->geom.setPosition(0.0, -1.05, 0.0); 
    6060                         
    6161                        boost::shared_ptr<ODESphere>  
    6262                                ball=srv_ent_create<ODESphere>(); 
    6363                        ball->geom.setRadius(0.025); 
     64                        ball->setLinearVel(-0.1, 0.0, 0.0); 
    6465                }; 
    6566                virtual void srv_con_start(NetCon::pointer con);