Gelatin can be used in sweet and savoury cooking to set food but care needs to be taken to make sure the water is not too hot when melting this, so that it will set properly.