Unable to grab objects for the second time in VRTK v4

Di Weng
1 min readAug 19, 2019

The cause of this problem is that GrabAction may reset objects’ kinematic attribute to false after releasing them. This behavior is configurable via “Interactable/InteractionLogic/Interactable.GrabLogic/Actions/PrimaryAction/Interactable.GrabAction.FollowAction”, where “Is Kinematic When Inactive” should be ticked.

UPDATE: The latest VRTK has an issue which causes “IsKinematicWhenInactive” reset to false when game is started. A workaround is to patch the following line at GrabInteractableFollowAction.cs:184

- IsKinematicWhenInactive = GrabSetup != null ? GrabSetup.Facade.ConsumerRigidbody.isKinematic : false;+ IsKinematicWhenInactive = GrabSetup != null ? GrabSetup.Facade.ConsumerRigidbody.isKinematic : IsKinematicWhenInactive;

--

--

Di Weng

Urban Visual Analytics | PhD Candidate at State Key Lab of CAD&CG, Zhejiang University | Member of Interactive Data Group | https://dweng.org