Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  (Solved) Ropes allowing objects to pass through them
#3
(02-04-2020, 03:57 PM)josemendez Wrote: There's many ways to prevent this, these are some of the easiest:
- Increase rope resolution.
- Increase the amount of distance constraint substeps.
- Increase the amount of updater substeps.
- Reduce the mass ratio (either increase particle mass, or decrease rigidbody mass)

...ObiParticleRenderer...

Thanks for your quick response. I have tried all the things you've suggested. Here is every relevant detail of my setup. Anything I haven't specifically mentioned remains at it's default value. I've used red to indicate the fields I've altered specifically to test your suggestions. I see that the particles are nice and close together but the smaller balls still fall straight through the rope.

Rope Blueprint:
- Thickness: 0.1
- Resolution: 1
- Pooled Particles 1000
- Path:
    - Point A (left). Mass = 0.1
    - Point B (right). Mass = 0.1

Solver:
- Mode: 2D
- Damping: 0.75
- Distance Constraint (Sequential, 8 iterations)
- Collision Constraint (Sequential, 8 iterations)

Updater:
- Substep: true
- Substeps: 8

Falling objects:
- Circle Collider 2D
- Rigidbody 2D (dynamic, mass = 0.1, Drag = 1, Collisions = Discrete)
- Obi Collider 2D (all default settings)
- Obi Rigidbody 2D (kinematic for particles = false)

Rendering:
Obi Rope Line Renderer (purple)
Obi Particle Renderer (black)

Attachments:
Obi Particle Atttachment (Point A, Static)
Obi Particle Attachment (Point B, Static)

NOTE:
The rope is 10 unity units long from end to end.

Starting from this setup I've tried the following changes:
- Changing mass ratio from 1:1 to 10:1 to 1:10 - No change in behaviour
- Turning off physics substeps entirely - No change in behaviour
- Reducing distance and collision iteration counts back to their default values - No change in behaviour
- Reducing rope blueprint resolution to 0.5 - Behaviour is markedly worse, even the largest objects pass through easily

[Image: r4JlOTy.gif]
Thanks again for your help, any other suggestions would be welcome.

[EDIT: Also, if you notice, the rope seems to want to push the objects in contact with it quite hard to the left. This doesn't seem to respect the angle of incidence of the ball, it's always left no matter the objects position or direction when colliding . That seems odd to me too.]
Reply


Messages In This Thread
RE: Can ropes "hold" other objects? - by SpiralCircus - 02-04-2020, 06:03 PM