Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Collision Detection
#15
(08-01-2021, 08:46 AM)meryemekinci Wrote: 1. The rope's moves are too jiggly. I need its movements to be more settled, because when I make sudden moves to any corner of the screen, it loses contol.

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.

Quote:The distance between the particles are not equal all the time. It is always tighter near the cursor. I need them to be equally away from each other. Because that causes unexpected spaces between some particles and the connection with a joint breaks.

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.
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