![]() |
Help with Grappling Hook Implementation - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help with Grappling Hook Implementation (/thread-258.html) |
Help with Grappling Hook Implementation - Cyric - 25-12-2017 Hello, first off, I want to say how impressed I am with Obi Rope's performance, stability, and looks. You're doing a great job! So I'm *attempting* to use it in a less traditional fashion to create something similar to a Grappling Hook Gun. The player fires a projectile which attaches to other objects in the scene, and the player then swings around (in 3D) using Obi Rope rigid body physics. I'm currently stuck at even getting the projectile to fire from the "gun" with the rope attached to behave properly. I've pinned the ends of the rope to the projectile (rigidbody) and the player (rigidbody) and added a cursor to the players side. I've done basically what's in the code below and was hoping it would do the trick, but the projectile seems to just spring back and act unpredictably. Not to mention the cursor length extension doesn't seem to keep up when used this way. Code: bool fired = false; Any tips on how I should go about implementing this? RE: Help with Grappling Hook Implementation - kewlj - 24-07-2020 (25-12-2017, 06:25 AM)Cyric Wrote: Hello, first off, I want to say how impressed I am with Obi Rope's performance, stability, and looks. You're doing a great job![quote pid='854' dateline='1514179532'] I'm also trying to implement this. ie the rope will extend from the gun (source) and hook into the wall in 0.25 seconds Did you happen to find the way ? [/quote] |