Grappling Hook mechanics implemented in OffRoadRacing.
Posted by JoãoFonsecaGames on Mar 27th, 2024
Today I will demonstrate the implementation of two mechanics for grappling hook, specifically a swing and pull mechanism.
To construct the swing mechanic, I consulted the same source as Energy Hook: Jamie Fristrom's website of Swing mechanic.
Here's my solution for my swing set-up; while its parameters still need fine-tuning, the process works.
The video only depicts one axis; however, you have complete freedom in rotating all 3 axes independently.
I implemented a pull mechanic which makes the character move toward their objective and, once within reaching distance, releases automatically when close. My aim works similarly: If an object comes within range of my grappling hook then choose from all those selected objects the one closest to center screen for release automatically.