| 237 | } |
| 238 | |
| 239 | void Block::AddObject(dGeomID Object){ |
| 240 | // Add the geom |
| 241 | Object->next = First; |
| 242 | First = Object; |
| 243 | Object->tome = (dxGeom**)this; |
| 244 | |
| 245 | // Now traverse upwards to tell that we have a geom |
| 246 | Block* Block = this; |
| 247 | do{ |
| 248 | Block->GeomCount++; |
| 249 | Block = Block->Parent; |
| 250 | } |
| 251 | while (Block); |
| 252 | } |
| 253 | |
| 254 | void Block::DelObject(dGeomID Object){ |
| 255 | // Del the geom |