Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Assigning runtime static attachments cause rope to bounce
#3
(30-01-2023, 03:49 PM)josemendez Wrote: Hi!

You can't spawn a single rope prefab and attach its ends to different transforms (let's call them transforms "A" and "B"), simply because the distance between A and B and the length/orientation of the cable prefab won't match: A might be 5 meters away from B, if your rope prefab is 3 meters long, you'll overstretch the rope by 2 meters, as the ends of the rope get "teleported" towards the transforms the rope will instantly gain a huge amount of kinetic energy and swing around like crazy. Or if A is 1 meter away from B, your 3 meters-long rope will instantly compress and then sag a lot.

What you want is to dynamically generate a rope of the correct length from transform A to transform B. You can do this by generating a rope blueprint at runtime, see "rope blueprints" in the manual's "scripting actors" section: http://obi.virtualmethodstudio.com/manua...ctors.html

kind regards,

Hey Josemendez,

Thank you very much for your explanation. I've manage to solve it with your directions!

Best wishes
Reply


Messages In This Thread
RE: Assigning runtime static attachments cause rope to bounce - by aderae - 30-01-2023, 06:09 PM