Grappling hook for 2D game

You can use pc.Entity methods to position/rotate and scale your base rope entity to “stretch” from the player towards the grapple point.

https://developer.playcanvas.com/en/api/pc.Entity.html

Here is useful library that can calculate a more complex trajectory:

1 Like