This section provides short “snippets” and examples of how to do various useful things in the plugin. I am saving things here as I example them for people that asked how to do them.
1.Gripping Snippets
Snap to location but keep rotation socket override
Example of aligning a hands location to the gripped object, but keeping the world rotation intact, changeable on a per object basis. The example is given as a lever component since they do not automatically look for snap points and needed additional framework.
I provided a second pastebin of how you could do it with a normal grippable which does handle snap points already.
BlueprintUE Paste of nodes
Blueprint Paste – Lever Example
Blueprint Paste – Grippable Example
4.25+ UAsset example
Spherical Object Grip Auto Alignment
Example of aligning a hand to a spherical object by overriding the VRGripInterfaces GetClosestSocketInRange function on the object.
Code uses the example templates pivot component and would be required to be adjusted to whatever pivot setup you use.
BlueprintUE Paste of nodes
4.25+ UAsset example
Calculate Relative Transform of hand to gripped object
Example of calculating the correct offset of a hand mesh to a gripped object.
BlueprintUE Paste of nodes
Drop current grip and socket it into target object on overlap
Example of dropping the current grip and socketing it on to another object when they overlap.
BlueprintUE Paste of nodes