Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  rope start and end point mesh close
#2
(09-05-2023, 04:29 PM)emreaa Wrote: is there no code to close the ends of the rope?

Yes, there's many different ways to do this: you can use pathSmoother.GetSectionAt() to place a custom mesh at the ends of the rope, use attachments, use the rope's elements array and particle positions to place a custom object at the ends, etc.

A simple, ready-made way to do it is to use ObiRopePrefabPlugger component. This allows you to place custom prefabs at the ends of the rope, as well as in any cut ends in the middle of the rope. See the "ElectricalWires" sample scene for an example of this.

kind regards,
Reply


Messages In This Thread
rope start and end point mesh close - by emreaa - 09-05-2023, 04:29 PM
RE: rope start and end point mesh close - by josemendez - 11-05-2023, 10:01 AM