Commit ffa49fe
committed
fix(Pointers): ensure object interactor is set by global scale
The pointer object interactor that becomes an extension of the
controller but tracks the scale of the actual pointer cursor.
This would cause an issue when the camera rig was scaled, the
object interactor would change size along with the camera rig
and no longer match the scale of the pointer cursor.
This fix uses the global scale of the pointer cursor to set the
global scale of the object interactor so the scales continue
to match even when the camera rig is scaled.1 parent e6b4d15 commit ffa49fe
File tree
4 files changed
+27
-3
lines changed- Assets/VRTK/Scripts
- Pointers/PointerRenderers
- Utilities
4 files changed
+27
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
448 | 459 | | |
449 | 460 | | |
450 | 461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6665 | 6665 | | |
6666 | 6666 | | |
6667 | 6667 | | |
| 6668 | + | |
| 6669 | + | |
| 6670 | + | |
| 6671 | + | |
| 6672 | + | |
| 6673 | + | |
| 6674 | + | |
| 6675 | + | |
| 6676 | + | |
| 6677 | + | |
| 6678 | + | |
| 6679 | + | |
6668 | 6680 | | |
6669 | 6681 | | |
6670 | 6682 | | |
| |||
0 commit comments