InstantPlacementPoint.TrackingMethod

  • InstantPlacementPoint.TrackingMethod defines how an Instant Placement Point is tracked in ARCore.

  • There are three tracking methods: FULL_TRACKING, SCREENSPACE_WITH_APPROXIMATE_DISTANCE, and NOT_TRACKING.

  • FULL_TRACKING indicates the point is fully tracked by ARCore, while SCREENSPACE_WITH_APPROXIMATE_DISTANCE means it's tracked in screen space with an estimated pose.

  • NOT_TRACKING signifies the point is not currently tracked and has a TrackingState of PAUSED or STOPPED.

  • ARCore limits the number of concurrently tracked points for SCREENSPACE_WITH_APPROXIMATE_DISTANCE to 20.

public static final enum InstantPlacementPoint.TrackingMethod

Tracking methods for InstantPlacementPoint.

Inherited Methods

Enum Values

FULL_TRACKING

public static final InstantPlacementPoint.TrackingMethod FULL_TRACKING

The InstantPlacementPoint is being tracked normally and InstantPlacementPoint.getPose() is using a pose fully determined by ARCore.

ARCore doesn't limit the number of InstantPlacementPoints with FULL_TRACKING that are being tracked concurrently.

NOT_TRACKING

public static final InstantPlacementPoint.TrackingMethod NOT_TRACKING

The InstantPlacementPoint is not currently being tracked. The TrackingState is TrackingState.PAUSED or TrackingState.STOPPED.

SCREENSPACE_WITH_APPROXIMATE_DISTANCE

public static final InstantPlacementPoint.TrackingMethod SCREENSPACE_WITH_APPROXIMATE_DISTANCE

The InstantPlacementPoint is currently being tracked in screen space and the pose returned by InstantPlacementPoint.getPose() is being estimated using the approximate distance provided to Frame.hitTestInstantPlacement(float, float, float).

ARCore concurrently tracks at most 20 InstantPlacementPoints that are SCREENSPACE_WITH_APPROXIMATE_DISTANCE. As additional InstantPlacementPoints with SCREENSPACE_WITH_APPROXIMATE_DISTANCE are created, the oldest points will become permanently TrackingState.STOPPED in order to maintain the maximum number of concurrently tracked points.