| 50 | | virtual void srv_init() { |
| 51 | | //create bars on top and bottom |
| 52 | | //uint16_t entid; |
| 53 | | boost::shared_ptr<ODEBox> |
| 54 | | bartop=srv_ent_create<ODEBox>(), |
| 55 | | barbot=srv_ent_create<ODEBox>(); |
| 56 | | bartop->geom.setLengths(2.0,0.05,0.05); |
| 57 | | bartop->setPosition(0.0, 1.05, 0.0); |
| 58 | | bartop->set_immovable(); |
| 59 | | |
| 60 | | barbot->geom.setLengths(2.0,0.05,0.05); |
| 61 | | barbot->setPosition(0.0, -1.05, 0.0); |
| 62 | | barbot->set_immovable(); |
| 63 | | |
| 64 | | boost::shared_ptr<ODESphere> |
| 65 | | ball=srv_ent_create<ODESphere>(); |
| 66 | | ball->geom.setRadius(0.025); |
| 67 | | ball->setLinearVel(0.0, 1.0, 0.0); |
| 68 | | }; |
| | 50 | virtual void srv_init(); |