28-09-2017, 08:55 AM
(This post was last modified: 28-09-2017, 08:58 AM by josemendez.)
(28-09-2017, 03:33 AM)dignifiedweb Wrote: Thank you for the quick reply! That helped a lot, but unfortunately I still can't get both the top and bottom pinned cubes to have the rope snug on both ends right up to the collider.
Although, I feel like if I play with this order, it will still help, don't have much time today to go through it more. However, it got me thinking, what's the white box that goes around the rope? Is that where the Obi collider is for the rope? The reason I ask, is because my top pin is pinned right up against the top cube. The bottom one is now pinned snug to the bottom cube right up against the white box. The white box only being visible in the inspector window of course (pictured in my screenshot above still).
I hope I'm explaining it ok.
Edit:
I was able to get it snug on both ends by using your advice, then on the bottom pin constraint I had to bring in the Y offset just a bit. Here's a screen of what I'm talking about:
It would still be nice to know about what the white box is at runtime, what is it visualizing in the editor there?
Thanks again!
The white box is the bounding box of all particles in the solver. So if you had multiple ropes in the same solver, it would enclose them all. This is mainly used for frustum culling.
If your cubes are colliders, then the issue is probably that the first / last particles in the rope are colliding against them, and being forced out of collision. If you add a ObiParticleRenderer component to the rope (so that its particles are drawn) and run the scene, this should be quite apparent.
The solution for this is to set the first/last particles in the same collision phase as the cubes, so that they ignore collisions against them. You set the phase value for individual particles using the particle editor. See:
http://obi.virtualmethodstudio.com/tutor...sions.html
http://obi.virtualmethodstudio.com/tutor...iting.html
Alternatively, if you do not need the cubes to collide with the rest of the rope at all, you can just change their phase instead. As long as the rope particles' phase and the collider's phase are the same, they won't collide.