@@ -44,7 +44,10 @@ public Transform GripPose
44
44
/// <inheritdoc />
45
45
public override void OnSourcePoseChanged ( SourcePoseEventData < Pose > eventData )
46
46
{
47
- SourcePose = eventData . SourceData ;
47
+ if ( eventData . SourceId == Controller ? . InputSource . SourceId )
48
+ {
49
+ SourcePose = eventData . SourceData ;
50
+ }
48
51
49
52
if ( OverrideSourcePose )
50
53
{
@@ -57,7 +60,10 @@ public override void OnSourcePoseChanged(SourcePoseEventData<Pose> eventData)
57
60
/// <inheritdoc />
58
61
public override void OnSourcePoseChanged ( SourcePoseEventData < Quaternion > eventData )
59
62
{
60
- SourcePose = new Pose ( SourcePose . position , eventData . SourceData ) ;
63
+ if ( eventData . SourceId == Controller ? . InputSource . SourceId )
64
+ {
65
+ SourcePose = new Pose ( SourcePose . position , eventData . SourceData ) ;
66
+ }
61
67
62
68
if ( OverrideSourcePose )
63
69
{
@@ -70,7 +76,10 @@ public override void OnSourcePoseChanged(SourcePoseEventData<Quaternion> eventDa
70
76
/// <inheritdoc />
71
77
public override void OnSourcePoseChanged ( SourcePoseEventData < Vector2 > eventData )
72
78
{
73
- SourcePose = new Pose ( eventData . SourceData , SourcePose . rotation ) ;
79
+ if ( eventData . SourceId == Controller ? . InputSource . SourceId )
80
+ {
81
+ SourcePose = new Pose ( eventData . SourceData , SourcePose . rotation ) ;
82
+ }
74
83
75
84
if ( OverrideSourcePose )
76
85
{
@@ -83,7 +92,10 @@ public override void OnSourcePoseChanged(SourcePoseEventData<Vector2> eventData)
83
92
/// <inheritdoc />
84
93
public override void OnSourcePoseChanged ( SourcePoseEventData < Vector3 > eventData )
85
94
{
86
- SourcePose = new Pose ( eventData . SourceData , SourcePose . rotation ) ;
95
+ if ( eventData . SourceId == Controller ? . InputSource . SourceId )
96
+ {
97
+ SourcePose = new Pose ( eventData . SourceData , SourcePose . rotation ) ;
98
+ }
87
99
88
100
if ( OverrideSourcePose )
89
101
{
0 commit comments