Grab Component in VR template

Lever pulling making

Method 1:

Method 2
(need BP_PickupCube from 4.26, I can’t find replacement)

BP actor called Lever BP
LeverPoint typed from Scene
image.png

Add Grab interface (made in Flashlight/2 handed grab tutorials) in Class settings
image.png

In event graph:
image.png
the release node, checks if motion controller ==, is to make sure when either left/right hand is released first, before the other hand can take the action.

On event tick node (to control movement of lever handle)
image.png
continue by split return value of last node:
image.png
Final (clamp min -90 max 90 for 180 degree rotation):
image.png
Suggested solution for an issue with the lever being rotated:
image.png

Method 2 viewport extra components and its event graph:
image.png
image.png


VR Pawn (same as flashlight on grab node, but no trigger node):
image.png

Rotation handle not work as expected

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.