Select the behavior of Instant Placement. Default value is
Config.setInstantPlacementMode(InstantPlacementMode) to set the desired mode.
|static <T extends Enum<T>> T|
public static final Config.InstantPlacementMode DISABLED
Disable Instant Placement.
Frame.hitTestInstantPlacement(float, float, float) will
return an empty list.
When Instant Placement is disabled, any
InstantPlacementPoint that has
InstantPlacementPoint.TrackingMethod.SCREENSPACE_WITH_APPROXIMATE_DISTANCE tracking method
will result in tracking state becoming permanently
public static final Config.InstantPlacementMode LOCAL_Y_UP
Enable Instant Placement. If the hit test is successful,
Frame.hitTestInstantPlacement(float, float, float) will return a single
InstantPlacementPoint with the +Y pointing upward, against gravity. Otherwise, returns an
empty result set.
This mode is currently intended to be used with hit tests against horizontal surfaces.
Hit tests may also be performed against surfaces with any orientation, however:
- The resulting Instant Placement point will always have a pose with +Y pointing upward, against gravity.
- No guarantees are made with respect to orientation of +X and +Z. Specifically, a hit test against a vertical surface, such as a wall, will not result in a pose that's in any way aligned to the plane of the wall, other than +Y being up, against gravity.
InstantPlacementPoint's tracking method may never become
InstantPlacementPoint.TrackingMethod.FULL_TRACKINGor may take a long time to reach this state. The tracking method remains
InstantPlacementPoint.TrackingMethod.SCREENSPACE_WITH_APPROXIMATE_DISTANCEuntil a (tiny) horizontal plane is fitted at the point of the hit test.