CPC G06T 13/60 (2013.01) [G06F 3/04815 (2013.01); G06F 3/0484 (2013.01); G06T 19/006 (2013.01); G06T 2200/24 (2013.01)] | 24 Claims |
1. A method, comprising:
at a computer system that is in communication with a display generation component and one or more sensors for detecting user inputs:
while a view of a physical environment is visible via the display generation component, receiving a request to display a first virtual effect with the view of the physical environment; and
in response to detecting the request to display the first virtual effect with the view of the physical environment, displaying one or more virtual objects overlaid on the view of the physical environment, including:
displaying respective animated movements of the one or more virtual objects over at least a portion of the view of the physical environment, wherein the respective animated movements are constrained in accordance with a direction of simulated gravity associated with the view of the physical environment;
in accordance with a determination that a current position of a first virtual object of the one or more virtual objects during the respective animated movement of the first virtual object corresponds to a first surface detected in the view of the physical environment, constraining the respective animated movement of the first virtual object in accordance with the first surface detected in the view of the physical environment; and
in accordance with a determination that a current position of a second virtual object of the one or more virtual objects during the respective animated movement of the second virtual object corresponds to a second surface detected in the view of the physical environment, wherein the second surface is lower than the first surface in the direction of the simulated gravity, constraining the respective animated movement of the second virtual object in accordance with the second surface detected in the view of the physical environment.
|