Skip to content

Commit 9aae281

Browse files
committed
Merge branch 'may18_dev_SurfaceMagnetism' of https://github.com/cre8ivepark/MixedRealityToolkit-Unity into may18_dev_SurfaceMagnetism
2 parents 2755709 + f209d16 commit 9aae281

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Assets/HoloToolkit-Examples/SpatialMapping/SpatialProcessingSurfaceMagnetism.md

Lines changed: 8 additions & 6 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

22-
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">
24+
3. Assign SolverSurfaceMagnetism script to an object. In Magnetic Surface option, select the new layer **SpatialMapping** that you created.
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)