Setup Guide - Vaei/Grasp GitHub Wiki
[!IMPORTANT] Watch the Video There is no substitute for watching the video, but here's a recap...
- Install Grasp
- Create Object Channel called "Grasp"
- Create Collision Profile called "Grasp" - Query Only - Object Type: Grasp - Ignore Everything
- Go to "Grasp Developer Settings" and assign the new profile
- Set as Default
- Duplicate GraspTargeting and assign Collision Object Types: Grasp
- Add a Grasp component to the Player Controller and assign your new GraspTargeting to the Default Targeting Presets
- During Event On Possess call
InitializeGrasp()on the Grasp component, passing in theGraspScanability - Add a GraspableComponent to an actor that you want to interact with
- Create and assign GraspData
- Create and assign an interaction ability to your GraspData's GraspAbility
- When pressing interact input, determine what we want to interact with e.g. use Vigil
- Check
CanInteractWith()on the Graspable Component (pass it the Pawn) - Check
CanGraspActivateAbility()and if true callTryActivateGraspAbility()