File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ class WebXRController {
169169
170170 joint . matrix . fromArray ( jointPose . transform . matrix ) ;
171171 joint . matrix . decompose ( joint . position , joint . rotation , joint . scale ) ;
172+ joint . matrixWorldNeedsUpdate = true ;
172173 joint . jointRadius = jointPose . radius ;
173174
174175 }
@@ -217,6 +218,7 @@ class WebXRController {
217218
218219 grip . matrix . fromArray ( gripPose . transform . matrix ) ;
219220 grip . matrix . decompose ( grip . position , grip . rotation , grip . scale ) ;
221+ grip . matrixWorldNeedsUpdate = true ;
220222
221223 if ( gripPose . linearVelocity ) {
222224
@@ -261,6 +263,7 @@ class WebXRController {
261263
262264 targetRay . matrix . fromArray ( inputPose . transform . matrix ) ;
263265 targetRay . matrix . decompose ( targetRay . position , targetRay . rotation , targetRay . scale ) ;
266+ targetRay . matrixWorldNeedsUpdate = true ;
264267
265268 if ( inputPose . linearVelocity ) {
266269
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ class WebXRManager extends EventDispatcher {
130130
131131 if ( controller !== undefined ) {
132132
133+ controller . update ( event . inputSource , event . frame , customReferenceSpace || referenceSpace ) ;
133134 controller . dispatchEvent ( { type : event . type , data : event . inputSource } ) ;
134135
135136 }
You can’t perform that action at this time.
0 commit comments