Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Collision Detection
#16
(08-01-2021, 10:47 AM)josemendez Wrote: Increasing damping should help with "jigglyness", as it increasing the rate at which particles lose energy. I see that you have it set quite high already, though. A possible solution could be allowing the user to only indirectly control the rope's end trough forces or other means, not allowing instant or near-instant teleportation to any point of the screen. See the included "WrapTheRope" scene for reference, which is basically the same game you're attempting to replicate.

Also, our rope has way too many particles. This will result in less-than-ideal performance, and force you to use a lot of iterations/substeps to keep in taut, resulting in even worse performance.

You should try to reduce rope resolution as much as you can, while keeping collision detection robust enough. Making the pegs thicker could help.


As explained in the manual (http://obi.virtualmethodstudio.com/tutor...olver.html), sequential evaluation is order-dependent. Constraints are grouped in batches to allow for efficient parallelization, but this results in particles that separate different distances from each other when the simulation can't converge (that is, when the rope stretches too much).

Using parallel evaluation solves this, at the cost of slower convergence. Which one to use is up to you and the results you want to get.

Thank you for your detailed answer, Jose. I really appreciate it. I will try and check the results right away. I just have a simple question related to the particles. Is it possible to change pooled particle count in run time? The reason I set it high, I will need the rope to be longer in later chapters of the game.

Thank you in advance. Have a nice day!
Reply


Messages In This Thread
Obi Collision Detection - by meryemekinci - 21-12-2020, 02:27 PM
RE: Obi Collision Detection - by josemendez - 21-12-2020, 02:53 PM
RE: Obi Collision Detection - by meryemekinci - 21-12-2020, 03:10 PM
RE: Obi Collision Detection - by josemendez - 21-12-2020, 03:14 PM
RE: Obi Collision Detection - by meryemekinci - 21-12-2020, 03:18 PM
RE: Obi Collision Detection - by meryemekinci - 23-12-2020, 12:20 PM
RE: Obi Collision Detection - by josemendez - 23-12-2020, 12:37 PM
RE: Obi Collision Detection - by meryemekinci - 23-12-2020, 01:39 PM
RE: Obi Collision Detection - by meryemekinci - 24-12-2020, 01:42 PM
RE: Obi Collision Detection - by josemendez - 24-12-2020, 01:44 PM
RE: Obi Collision Detection - by meryemekinci - 25-12-2020, 11:33 AM
RE: Obi Collision Detection - by josemendez - 26-12-2020, 09:19 PM
RE: Obi Collision Detection - by meryemekinci - 06-01-2021, 06:01 PM
RE: Obi Collision Detection - by meryemekinci - 21-01-2021, 04:17 PM
RE: Obi Collision Detection - by josemendez - 22-01-2021, 09:27 AM
RE: Obi Collision Detection - by meryemekinci - 08-01-2021, 08:46 AM
RE: Obi Collision Detection - by josemendez - 08-01-2021, 10:47 AM
RE: Obi Collision Detection - by meryemekinci - 08-01-2021, 12:17 PM
RE: Obi Collision Detection - by josemendez - 08-01-2021, 12:26 PM
RE: Obi Collision Detection - by meryemekinci - 20-01-2021, 09:44 AM
RE: Obi Collision Detection - by meryemekinci - 23-01-2021, 10:39 AM