Skip to content

Commit c6475d9

Browse files
authored
Update SpatialProcessingSurfaceMagnetism.md
1 parent 8ac894c commit c6475d9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Assets/HoloToolkit-Examples/SpatialMapping/SpatialProcessingSurfaceMagnetism.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ https://gfycat.com/PitifulRareKodiakbear
1212
## How to use
1313
You need to assign same Unity layer to the Spatial mapping’s plane and Solver Surface Magnetism’s Magnetic Surface.
1414

15-
1. Add a new layer for the planes created by Spatial Processing. (to snap to) This example shows a new layer named ‘SpatialProcessingPlane’
15+
1. Add a new layer for the planes created by Spatial Processing. Mixed Reality Toolkit's Apply Mixed Reality Projcet Settings automatically addes a new layer 31:Spatial Mapping.
1616
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism1.png" width="550">
17-
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism2.png" width="550">
18-
19-
2. In SpatialMapping prefab, change Physics Layer to the new layer number. In this example, the new layer is 8
17+
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism2.png" width="300">
2018
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism3.png" width="550">
19+
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism4.png" width="300">
20+
21+
2. In SpatialMapping prefab, make sure to set the Physics Layer to 31.
22+
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism5.png" width="550">
2123

2224
3. Assign SolverSurfaceMagnetism script to an object. In Magnetic Surface option, select the new layer (SpatialProcessingPlane) that you created.
23-
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism4.png" width="550">
25+
<img src="/External/ReadMeImages/MRTK_SurfaceMagnetism6.png" width="550">
2426

2527
4. After initial room scanning, you will be able to see MRTK logo plane is smoothly snapping to the surfaces.
2628

0 commit comments

Comments
 (0)