def attach_physics_model(self, physics_model=DEFAULT_PHYSICS_MODEL_NAME,
                             shape_name=DEFAULT_SHAPE_NAME, model=None, material=None,
                             shape_type="mesh"):
        """Attach a physics model to the JSON representation."""
        if model is None:
            model = { 'type': "rigid",
                      'shape': shape_type,
                      'geometry': shape_name }
        if material:
            model['material'] = material
        self.asset['physicsmodels'][physics_model] = model
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py/JsonAsset.attach_physics_model/original