Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ropearound like physics
#7
(04-06-2020, 09:24 AM)josemendez Wrote: Hi,

To prevent stretching (= slow convergence) you can just crank up the amount of substeps up. That will yield near unstretchable rope. Since there's no regular (Unity) physics involved, you don't pay the price of collision detection for each substep.

On the subject of convergence/substeps/iterations (which is physics simulation 101), I highly recommend reading the following link. Might take a while to sink in, but it is really useful:
http://obi.virtualmethodstudio.com/tutor...gence.html

Substeps basically divide each physics step into multiple smaller steps. Advancing the simulation using smaller timesteps prevents the rope from getting into "very" invalid state after each step, so the solver has to do less work to bring it back to a valid state (fewer iterations).

Think of constraint iterations as a way to fix the errors introduced by the fact that physics in games are advanced in "stop-motion", and think of substeps as a way to reduce the amount of error that is introduced in the first place.

Thank you for support. I'll look at the tutorial. 

If I use a real tube for the rope(to prevent left-right swinging), the rope's particles collides with this tube all the time and I need to extract the contact points other than the tube. Is there an easy way to do this other than loop through the whole contacts list every frame and pick the objects other than the tube? (Like, collide with object but not collect contact points for this object)
Reply


Messages In This Thread
Ropearound like physics - by relevantname - 03-06-2020, 04:43 PM
RE: Ropearound like physics - by josemendez - 03-06-2020, 04:48 PM
RE: Ropearound like physics - by relevantname - 03-06-2020, 08:18 PM
RE: Ropearound like physics - by josemendez - 04-06-2020, 08:06 AM
RE: Ropearound like physics - by relevantname - 04-06-2020, 08:46 AM
RE: Ropearound like physics - by josemendez - 04-06-2020, 09:24 AM
RE: Ropearound like physics - by relevantname - 04-06-2020, 09:57 AM
RE: Ropearound like physics - by josemendez - 04-06-2020, 10:13 AM
RE: Ropearound like physics - by relevantname - 04-06-2020, 10:49 AM