Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Check if rope is wrapping or unwrapping?
#3
(23-02-2021, 08:37 AM)josemendez Wrote: There's no built-in way to do that. The definition of "wrapped" can change a lot depending on the game. Is it 2D or 3D? what conditions should the rope meet to consider it's wrapped? should the rope touch itself to determine if it's wrapped? should all particles between two points be in contact with the object? etc.

You can implement this yourself using the particle/collisions API and some math:
http://obi.virtualmethodstudio.com/tutor...icles.html
http://obi.virtualmethodstudio.com/tutor...sions.html

Thanks, those are helpful links. I'm stillĀ confused on how to determine if it is wrapped though. I am wrapping a rope around a 3D pole. One end of the rope is latched onto the top of that pole and the rest of the rope hangs down. The rope does not touch itself when it comes around, instead it goes around the pole in a helix sort of structure. Maybe I can check and see if all particles between two points on the rope are in contact like you suggested? I think that makes sense. Do you have any more tips?
Reply


Messages In This Thread
RE: Check if rope is wrapping or unwrapping? - by Navvv - 24-02-2021, 12:43 AM