Description:
I created a player that moves using two independent grappling hooks. The player can shoot out and attach two separate hooks to surfaces, allowing for varied swinging patterns. The movement and force of the grappling hooks is influenced by both the player and the environment, creating a dynamic and responsive feel. The combination of dual hooks enables advanced maneuvers, such as swinging around corners. I developed this using Unreal Engine.
Why Unreal Engine?
I know Unreal Engine is big in the industry, so I wanted to get some hands-on experience with it.
The Interact function allows the player to initiate a grappling action by detecting where they are aiming and performing a physics-based check to determine if they can attach to a surface. If a valid surface is found, the grapple cable extends toward the target, preparing the player for movement.
This smoothly extends the grappling cable toward the target. Once it reaches the target, it transitions the character into a grappling movement state, switching movement mode to "Flying" for further motion handling. The cable’s position is updated each frame to visually match its progress.
This is when the player is actively grappling and the cable has reached its target. It manages the pulling effect, updates the cable length dynamically, and rotates the character toward the grapple point for a smooth and natural movement.
This function allows the character to shoot out two grappling hooks simultaneously, one to the left and one to the right.
The grappling hook fires from the player to the target, pulling the player toward it once attached.
Dual grappling gives the player more control and enhances the overall gameplay experience.
Conclusion
Since I used Unreal, it was easy to get started on the grappling hook. So I spent most of my time making sure it felt good to use. I amm proud of what I made, but there are still a few things I wish I had added or improved—like speeding up while grappling and making the grappling hook look better. The biggest thing I learned was how to work with Unreal Engine’s quirks.
Name: Linus Granskog
Email: linus.granskog03@gmail.com
Phone: +46 732632300