10-06-2022, 12:03 AM
(06-06-2022, 07:45 AM)josemendez Wrote: Hi Natty!Hi Jose,
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,
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);
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!