Commit 2e4616a
committed
fix(Teleport): use the nav mesh check distance value in SamplePosition
The nav mesh check using `NavMesh.SamplePosition` was using a hard
coded max position of `0.1f` rather than the optional parameter, so the
parameter was only acting as a toggle instead of providing granual
control.
This has now been fixed so the parameter is used as the `maxDistance`.1 parent 356b09d commit 2e4616a
File tree
3 files changed
+4
-4
lines changed- Assets/VRTK/Scripts
- Abstractions
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2079 | 2079 | | |
2080 | 2080 | | |
2081 | 2081 | | |
2082 | | - | |
| 2082 | + | |
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
| |||
0 commit comments