Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Make damaged rope
#2
(22-11-2021, 11:24 AM)greyhawk Wrote: Greetings,

How do you think I can supply the damaged rope in the picture with obi rope? Should I find the relevant particle and place a 3d object with this appearance on it? I am open to your suggestions.

Yes, you could find the "damaged" particle and place an object there using the particle API:
http://obi.virtualmethodstudio.com/manua...icles.html

Note this would just give you a position to place the object at, not an orientation (remember that ropes do not model torsion, unlike rods).

You could also just determine the damaged zone using a normalized coordinate from 0 (start of the rope) to 1 (end of the rope) and use pathSmoother.GetSectionAt(coordinate). This returns an orthonormal frame, complete with position and orientation - in case of ropes, since the simulation does not output an orientation, orientation is determined using parallel transport.

There's a utility script included that will place an object at a normalized position in the rope using GetSectionAt:
/Obi/Scripts/RopeAndRod/Utils/ObiRopeAttach.cs
Reply


Messages In This Thread
Make damaged rope - by greyhawk - 22-11-2021, 11:24 AM
RE: Make damaged rope - by josemendez - 22-11-2021, 11:33 AM
RE: Make damaged rope - by greyhawk - 22-11-2021, 01:05 PM
RE: Make damaged rope - by josemendez - 22-11-2021, 01:15 PM
RE: Make damaged rope - by greyhawk - 22-11-2021, 01:56 PM
RE: Make damaged rope - by greyhawk - 22-11-2021, 03:40 PM
RE: Make damaged rope - by josemendez - 22-11-2021, 04:05 PM
RE: Make damaged rope - by greyhawk - 22-11-2021, 04:22 PM
RE: Make damaged rope - by greyhawk - 23-11-2021, 11:44 AM
RE: Make damaged rope - by josemendez - 23-11-2021, 12:01 PM
RE: Make damaged rope - by josemendez - 23-11-2021, 01:05 PM
RE: Make damaged rope - by greyhawk - 26-11-2021, 08:51 AM