Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logic like cut the rope ?
#3
(05-10-2019, 02:52 PM)josemendez Wrote: Obi provides a method to cut the rope at a given constraint index, but it's completely up to you to determine which constraint to cut based on your game logic and/or user input.

For a cut-the-rope like game, you need to determine which constraint in the rope intersects the swipe. First thing that comes to mind is iterating over all distance constraints in the rope, an perform a segment/segment intersection test between the swipe and each constraint.

kind regards,

Thanks for the advice, that seems like its doable, just trying to figure out if its possible and easy to achieve what I want to do or not.
Reply


Messages In This Thread
Logic like cut the rope ? - by superdev - 05-10-2019, 01:14 PM
RE: Logic like cut the rope ? - by josemendez - 05-10-2019, 02:52 PM
RE: Logic like cut the rope ? - by superdev - 05-10-2019, 05:35 PM