Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Freezing a rope on runtime
#2
(28-01-2021, 10:00 AM)Jesse Wrote: Hello!

In order to combat stretchy ropes and gaining some performance, I'm trying to freeze a rope 2 seconds after the player lets go of it and unfreeze it when the player picks it up again. I'm came across this response which helps a lot, I now instantiate the mesh and use that while the rope is frozen. However, I'm still running into an issue.

The rope is attached to an object using Particle Attachments. If the object it's attached to moves while the rope is frozen, the cable stays on it's frozen position.

How can I make sure the rope follows the object, even when it's frozen?

Hi there!

If I understood correctly, you're swapping the simulated rope for a baked mesh. The rope is attached to an object, and while the rope is "frozen" the object moves around but the rope does not follow it, correct?

The solution depends on whether you're using a static or a dynamic attachment. Static attachments work just like a parent-child relationship, so in that case you should be good by simply parenting the frozen rope mesh to the object it's attached to.

However if the attachment is dynamic, the object will be able to react to forces applied to the rope (think a ceiling lamp suspended from a cable). In this case you need the simulation to continue in order for the object to keep its current position, because once the rope is frozen the simulation will cease to apply any forces to the object and it will be free to move.

let me know if this helps Sonrisa. kind regards,
Reply


Messages In This Thread
Freezing a rope on runtime - by Jesse - 28-01-2021, 10:00 AM
RE: Freezing a rope on runtime - by josemendez - 28-01-2021, 10:16 AM
RE: Freezing a rope on runtime - by Jesse - 28-01-2021, 11:41 AM
RE: Freezing a rope on runtime - by josemendez - 28-01-2021, 11:54 AM