This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -211,7 +211,8 @@ private void onControllerUpdate(string id,
211211 position = sitStand . MultiplyPoint ( position ) ;
212212 }
213213
214- _t . SetPositionAndRotation ( position , rotation ) ;
214+ _t . localPosition = position ;
215+ _t . localRotation = rotation ;
215216
216217 UpdateButtons ( buttonValues ) ;
217218 axes = axesValues ;
@@ -282,15 +283,16 @@ void Update()
282283
283284 if ( this . simulate3dof )
284285 {
285- _t . SetPositionAndRotation ( applyArmModel (
286+ _t . localPosition = applyArmModel (
286287 InputTracking . GetLocalPosition ( XRNode . Head ) , // we use head position as origin
287288 InputTracking . GetLocalRotation ( handNode ) ,
288- InputTracking . GetLocalRotation ( XRNode . Head )
289- ) , InputTracking . GetLocalRotation ( handNode ) ) ;
289+ InputTracking . GetLocalRotation ( XRNode . Head ) ) ;
290+ _t . localRotation = InputTracking . GetLocalRotation ( handNode ) ;
290291 }
291292 else
292293 {
293- _t . SetPositionAndRotation ( InputTracking . GetLocalPosition ( handNode ) , InputTracking . GetLocalRotation ( handNode ) ) ;
294+ _t . localPosition = InputTracking . GetLocalPosition ( handNode ) ;
295+ _t . localRotation = InputTracking . GetLocalRotation ( handNode ) ;
294296 }
295297
296298 foreach ( WebXRControllerInput input in inputMap . inputs )
You can’t perform that action at this time.
0 commit comments