They literally grow in that direction, adding more cells on the shady/downhill side than on the sunny/uphill side in order to curve towards the light. It’s a permanent deformation of their body.
The other way plants move, like for venus fly traps, is with hydrolic pressure. They force water into specially made cells in response to a electrochemical trigger to cause them to expand, curving that part of the plant.
Latest Answers