A Unity 3D Grappling Hook
To Use:
- Attach the script to your player object.
- Choose your hook prefab.
- Assign your main scene camera.
- Add a capsule collider to your player object.
- Set the capsule collider height to match the player transform.
- Set the capsule collider as a trigger.
- Adjust your speed and grapple distance [optional]
- Add the tag "Hookable" to any object you wish to grapple to.
- Steal Underpants!
- Play and enjoy!
Note: This uses Unity's Standard Assets - Third Person Controller. If you wish to change this, look at lines 23 and 51, and change them accordingly.
Post a Comment