Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  3D Grappling Hook
#2
(28-01-2021, 05:53 PM)AuKtagon Wrote: Hi, I have modified the GrapplingHook.cs script to work in 3D for my game.
I have encountered a bug that I am unsure how to fix. Here is a GIF of what currently happens in my game: https://gyazo.com/1a32cb32cf6e7bd19ddc004e1ec7c6b5

I am trying to make a grappling gun that shoots out of the end of the gun and then attaches to the clicked object which you can then shorten the rope to move towards.
I am also encountering the Player's Rigidbody moving since it's being influenced by the rope. Is there any way to only move the player once the rope becomes strained/has no slack remaining? I am trying to only "pull" the player towards the rope once it is ready to move.

Any help or guidance will be greatly appreciated!

Thanks Gran sonrisa

Hi there!

I don't see any bugs in the video, other than the rope is being spawned too far in front of the gun. I can help you fix that if you share the modified grapplinghook,cs you're using.

As for the player movement being influenced by the rope, you can control this just like you'd do in the real world: adjusting the mass of the rope and/or the player. If the player is heavier than the rope, rope movement won't affect him much unless the rope is pulling from him.

kind regards,
Reply


Messages In This Thread
3D Grappling Hook - by AuKtagon - 28-01-2021, 05:53 PM
RE: 3D Grappling Hook - by josemendez - 29-01-2021, 01:57 PM
RE: 3D Grappling Hook - by AuKtagon - 29-01-2021, 04:08 PM
RE: 3D Grappling Hook - by josemendez - 29-01-2021, 05:42 PM
RE: 3D Grappling Hook - by AuKtagon - 29-01-2021, 06:03 PM
RE: 3D Grappling Hook - by AuKtagon - 04-02-2021, 12:04 PM
RE: 3D Grappling Hook - by josemendez - 04-02-2021, 12:32 PM