Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Fishing Pole/Line
#3
(15-04-2022, 09:17 AM)josemendez Wrote: Hi!

Calling the ObiRopeCursor’s ChangeLength() method would be the way to go. Initially you want to set it to the length between the tip of the rod and the bobber (might be a fixed distance that you specify) and when the player casts it out, set it to the *measured* (using Vector3.Distance) distance between the tip of the rod and the bobber, plus some extra headroom if you want. That should do it.

Let me know if i can be of further help. Kind regards,

Hi Jose,

I am making some progress!  

To provide some info in case you have any insights, I am using the default Obi Solver settings.  The rope has 4 control points; one at the pole, one in the middle, then one about a quarter away from the bobber, and then the last one at the very end of rope (pretty similar to what I saw on the Chain example you have).  Obi Rope cursor Cursor Mu is 0.5 and Source Mu is 0.5.  I'm using the included RopeLengthController script.

I'll still need to add a force to the bobber in order for the player to cast it, but that just comes down to Unity/C# that I can whip up.  For now, I'm trying to get the rope settings to be somewhat closer to a fishing line.  The game itself is low poly and I am not trying to create any realistic fishing simulation, just something that looks good and feels fun Sonrisa 

I plan to keep messing with the settings today, but I'm open for any suggestions.

Edit:

Ok so here's an update: https://streamable.com/4yqj8t.  I've added a buoyancy script to the bobber, and the rope no longer snaps now when reeling all the way in.  I am having a hard time keeping the red part of the bobber, floating at the top though, as it seems to get pulled down by the rope?  Not sure how to fix this, but here is the buoyancy script so far: https://hastepaste.com/view/LuX8

Also, the fishing line is way too bouncy, how can I change the elasticity, along with keeping the red tip of the bobber above the water?

Thank you.
Reply


Messages In This Thread
Fishing Pole/Line - by Natty - 15-04-2022, 12:57 AM
RE: Fishing Pole/Line - by josemendez - 15-04-2022, 09:17 AM
RE: Fishing Pole/Line - by Natty - 17-04-2022, 06:22 PM
RE: Fishing Pole/Line - by josemendez - 18-04-2022, 09:38 AM
RE: Fishing Pole/Line - by Natty - 19-04-2022, 02:56 PM
RE: Fishing Pole/Line - by josemendez - 20-04-2022, 08:47 AM
RE: Fishing Pole/Line - by Natty - 21-04-2022, 01:26 AM
RE: Fishing Pole/Line - by Natty - 26-04-2022, 05:44 PM
RE: Fishing Pole/Line - by josemendez - 27-04-2022, 07:56 AM
RE: Fishing Pole/Line - by Natty - 29-04-2022, 07:13 PM
RE: Fishing Pole/Line - by josemendez - 30-04-2022, 09:40 AM
RE: Fishing Pole/Line - by Natty - 30-04-2022, 04:47 PM
RE: Fishing Pole/Line - by josemendez - 30-04-2022, 05:38 PM
RE: Fishing Pole/Line - by Natty - 30-04-2022, 11:07 PM
RE: Fishing Pole/Line - by josemendez - 01-05-2022, 12:24 AM
RE: Fishing Pole/Line - by Natty - 01-05-2022, 03:40 AM
RE: Fishing Pole/Line - by josemendez - 02-05-2022, 08:54 AM
RE: Fishing Pole/Line - by Natty - 03-05-2022, 06:15 PM
RE: Fishing Pole/Line - by Natty - 25-05-2022, 12:39 AM
RE: Fishing Pole/Line - by josemendez - 25-05-2022, 01:23 PM
RE: Fishing Pole/Line - by Natty - 25-05-2022, 05:25 PM
RE: Fishing Pole/Line - by Natty - 04-06-2022, 09:08 PM
RE: Fishing Pole/Line - by josemendez - 06-06-2022, 07:45 AM
RE: Fishing Pole/Line - by Natty - 10-06-2022, 12:03 AM
RE: Fishing Pole/Line - by josemendez - 13-06-2022, 11:49 AM
RE: Fishing Pole/Line - by Natty - 22-06-2022, 03:11 AM
RE: Fishing Pole/Line - by josemendez - 22-06-2022, 08:32 AM
RE: Fishing Pole/Line - by Natty - 23-06-2022, 02:42 AM
RE: Fishing Pole/Line - by Natty - 28-06-2022, 01:15 AM