Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Check if rope is wrapping or unwrapping?
#2
(23-02-2021, 03:40 AM)Navvv Wrote: Is there any way to check if a rope is currently wrapping or unwrapping around a wrappable object? What about checking how many times the rope has wrapped around that object?

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
Reply


Messages In This Thread
RE: Check if rope is wrapping or unwrapping? - by josemendez - 23-02-2021, 08:37 AM