I've repeatedly meet "the game is not a physic simulation" answer. And most commentators suppose that there are no ways for in-game mechanic to place a character into specified ambiguity.
But I may prove that some of cases seeming to be impossible are actually feasible.
First of all physics works in any fantasy world, it is objective phenomena. Different worlds may have different physics laws, possibly totally undiscovered by it inhabitants. But this laws exist however not formulated. You may use well-known natural science way of hypotheses testing to bring light upon this laws.
There are two approaches for inserting magic into a fantasy world. You may totally override all casual physical laws or you may enrich them with magic in so in most times normal laws are applicable and only in specific cases magic cheats the normal laws.
The first way be used in fiction where all characters obey the writer and exposes supernatural laws to the chosen degree that the writer can control. But considering open nature of the rpg worlds, the world author can not control character actions, so he generally prefers the second way.
Suppose a character happen to be into a magic world. Then he performs sequence of experiments that are described into the school science course. If they give him the same result (in a situation where magic interference reduced to zero) than all well-known physics laws are still on service. Even if electromagnetic field is replaced with electromagnetic elemental.
Suppose that the fantasy universe follows the first methods of building "everything is magic". Then some of experiments should go out of conventional way. It means that every one consequence of this behavior should be considered by the realm author. Say kinetic theory of gases ceases to work. The author should replace diffusion, temperature-density relationship and other properties of gases with custom ones. You may effectively ban ICE with the cost of redefining all the atmosphere processes in your fictional world. And every player would pay attention to different aspects of magical universe laws, so the author would had hard times describing non-contradictory world
Taking "magic is only cheat to normal laws" is much easier to describe. And all d&d realms follows that way. They describes earth-like planets with a sun and closely adjacent axial tilt. Only minor aspects are modified with magic. So all mundane engineering devices would work in this universe too.
The meta-gaming objection "your character may not know what is known to you" may be fired. But note a typical d&d wizard. It has 30 inherited intelligence attribute by 20th level. Basic 18 + 2 as racial bonus to grey elf + 5 as level-dependent bonuses + 5 from wishes. Einstein has at most 25 Int attribute in the d&d scale. If player has a free time he can pursue physic laws by series of experiments each step based on previous and small enough to take appropriate Int test. His magic gives the wizard large advantage in setting such experiments. He may produce large variety of needed devices with magic. Shadow conjuration, wish, polymorph any object, other spells (and note that d&d permits to develop custom spells).