Skip to main content
Version: 20 Mar 2024

Plane Detection

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, or ceiling.

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

Because the Magic Leap 2 uses feature points to detect planes, flat surfaces without texture, such as a white wall, may not be detected properly.

See also