Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Saving Rope State
#8
(18-06-2020, 10:43 AM)josemendez Wrote: Hi,

I assume you're using a FixedUpdater and not a LateUpdater, right?

A slight separation will always exist regardless of what kind of updater you use, but in LateUpdater it would be more pronounced due to variable time stepping.

Constraints (such as the pin constraints created by a dynamic attachment) are "reactive": only when there's a slight separation between the current particle position and the position it is supposed to be, does the constraint apply a force to the particle. If you're pulling the rope from the other end with a static attachment (which simply sets the particle position every step), the constraint will apply a force to both the rope and the rigidbody to held them together at the attachment point, but won't instantaneously snap them together. This is just how iterative physics solvers work (pretty much all realtime engines).

You could increase the amount of pin constraint iterations, and/or use more substeps. This will reduce the separation, but will never completely eliminate it.

Anyway, this should be a very slight separation, not the huge gap in your screenshot. I can't tell for sure if that's the cause, or something entirely different.

Thank you, your suggestions alleviated the problem to an acceptable degree for me. And working around distance and pin constraint iterations (lowering distance and increasing pin for this case) has helped also I guess. I have one more question, the last one hopefully, I implemented the prewarm feature earlier thanks to the post you shared earlier, but with that GenerateImmediate function commented out I lose all control in terms of editing the rope via blueprint and edit path, control point editing is not a must have even though it's good to have but I cannot change rope thickness (or rope resolution) via blueprint(not control points, but the rope as a whole) and that's challenging terms of workflow. If I uncomment GenerateImmediate I lose my saved states across the project even in unopened scenes. Is there any way to circumvent this?
Reply


Messages In This Thread
Saving Rope State - by emreaa - 17-06-2020, 01:49 PM
RE: Saving Rope State - by josemendez - 17-06-2020, 05:11 PM
RE: Saving Rope State - by emreaa - 17-06-2020, 07:09 PM
RE: Saving Rope State - by emreaa - 18-06-2020, 12:30 AM
RE: Saving Rope State - by josemendez - 18-06-2020, 09:29 AM
RE: Saving Rope State - by emreaa - 18-06-2020, 10:19 AM
RE: Saving Rope State - by josemendez - 18-06-2020, 10:43 AM
RE: Saving Rope State - by emreaa - 19-06-2020, 05:38 PM
RE: Saving Rope State - by josemendez - 22-06-2020, 12:16 PM