| 243 | } |
| 244 | |
| 245 | void TileObjectVehicle::setPosition(Vec3<float> newPosition) |
| 246 | { |
| 247 | auto v = this->getVehicle(); |
| 248 | auto vtype = v->type; |
| 249 | auto facing = vtype->getVoxelMapFacing(v->facing); |
| 250 | auto size = vtype->size.at(facing); |
| 251 | |
| 252 | setBounds({size.x, size.y, size.z}); |
| 253 | |
| 254 | TileObject::setPosition(newPosition); |
| 255 | } |
| 256 | |
| 257 | void TileObjectVehicle::addToDrawnTiles(Tile *tile) |
| 258 | { |
nothing calls this directly
no test coverage detected