Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Fishing Pole/Line
#24
(06-06-2022, 07:45 AM)josemendez Wrote: Hi Natty!

There's a couple important issues with your setup:

1) In your first video I see you're using 25 (!) distance constraint iterations but only 6 substeps. This will dampen dynamics a lot, and cost a lot in terms of performance since your rope's constraints are being enforced a whooping 25x6 = 150 times per step.

Using 10-20 substeps and only 1 iteration would yield less stretchy rope that's both a lot more lively and a lot cheaper cheaper (10-20 updates instead of 150). As indicated in the manual, you should always prefer using substeps to iterations. Only use iterations to increase the relative importance of specific constraints.

2) Your solver is placed inside the fishing rod (which is rotated) and its gravity space set to self. This means the direction of gravity will rotate along with your rod which is definitely not what you want. Set the gravity space to world instead, to set gravity in world space instead of the rod's local space. This will get rid of the weird arc the rope does and the strangely rotated bobber.

See: http://obi.virtualmethodstudio.com/manua...olver.html

let me know if I can be of further help.

kind regards,
Hi Jose,

Thank you.  This helped a lot.  Still tweaking things a bit, but I want to spend some more time with it and write something up with details before asking you again. One thing I did come across though is that the method I am using to reset the fishing line is:

Code:
fishingPoleInHandCursor.ChangeLength(ropeRestLength);
I'm calling this in Update().  What I noticed is that this causes the rope to violently retract spinning erratically around in circles until it's back to its original length.  Is there a way to simply have this reset without needing it to even display that it's shortening?  Or is there a way to do it slower so that it doesn't wildly lose control?  Possibly my code is just wrong.

Still a lot for me to learn but I think I'm starting to come to terms with Obi Rope, it really is amazing how flexible it is.

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