Fixed several bugs relating to the Grappling arrows.
Refactored grapple script to improved readability of the code
Fixed the bug where grappling a holdable object would not work
Fixed bug where antigrav arrows did not unlock constraints when finished
Added a special option for grapple arrows to use the unity physics system to pull objects
If usePhysicsPull is enabled, it will apply a force to the object being pulled instead of lerping the transform. Using the physics system brings some advantages and disadvantages.
The biggest advantage of this option is much better collision interactions as the object gets pulled (it no longer clips through walls, and can actually be used to rotate objects since it applies a torque).
The disadvantages are the box feels much more jumpy and alive, and has a lot of trouble getting over dips.
Fixed several bugs relating to the Grappling arrows.
If usePhysicsPull is enabled, it will apply a force to the object being pulled instead of lerping the transform. Using the physics system brings some advantages and disadvantages.
The biggest advantage of this option is much better collision interactions as the object gets pulled (it no longer clips through walls, and can actually be used to rotate objects since it applies a torque). The disadvantages are the box feels much more jumpy and alive, and has a lot of trouble getting over dips.