public void reactToCollision(LevelSegment colseg, Ball ball) {
		colseg.actionOnCollision();
		// na razie przyjmuje ze bazuje tylko na plaszczyznach odbijajacych
		if (colseg.getSegmentType() == LevelSegment.PHYSICSEGMENT) {
			if (colseg.getBoundingBox().getBoxType() == BoundingBox.PLANEBOX) {
				Plane pl = ((BoundingPlane) colseg.getBoundingBox())
						.getMainPlane();
				ball.getVelocity().multiply(-1);
				ball.getVelocity().arbitraryAxisRotation(Math.PI,
						pl.getNormalVector()).multiply(colseg.getElasticity());

			} else if (colseg.getBoundingBox().getBoxType() == BoundingBox.CUBEBOX) {
				BoundingCube cube = (BoundingCube) colseg.getBoundingBox();
				ball.getVelocity().multiply(-1);
				ball.getVelocity().arbitraryAxisRotation(Math.PI,
						cube.getLastNormal()).multiply(colseg.getElasticity());

			}
		}
	}