Skip to main content
Version: 12 Dec 2024

Plane Detection Overview

Magic Leap 2 tries to understand its environment using feature points and planes.

If a cluster of feature points appears to lie on common horizontal or vertical surfaces, Magic Leap labels this cluster as a geometric plane and classifies it as being a floor, wall, ceiling or platform.

Each detected plane contains information about its alignment, center position, size, and extents. This information can be useful for placing virtual objects that rest on flat surfaces.

caution

This feature requires the SPATIAL_MAPPING permission to be enabled in your project's Manifest Settings. (Edit > Project Settings > Magic Leap > Manifest Settings)

info

The Magic Leap 2 uses feature points to detect planes. As a result, flat surfaces without texture, such as a white wall, may not be detected accurately.

See also