I’ve been trying recreate Apex Legend’s Pathfinder/Titanfall 2 grapple mechanics. So far the obvious way seems to be:
- Get the location where the grapple attaches and promote as variable
- Get player’s character world location, promote as variable, and have it constantly updated over the course of grapple
- Utilize “AddForceToCharacter”, apply a force to the character at a vector from the character world location to the grapple attach spot, so the grapple constantly “pulls” the player toward grapple spot while the character world location changes.
However, I don’t know how to have the variable for character world location constantly being updated, and constantly have it pinged by the grapple script so the vector of the force applied to the character changes direction as the character moves around in the world over the course of grapple. Any ideas how I could achieve that? Thanks!