For an application on a mobile device, I'll need to implement such a fonction.
In the page, there would be a tree and when an action is performed, apples will fall. But I don't want them to fall to the bottom of the screen but to the real ground and that, wathever the rotation angle of the device.
Any hint on how to do that ?