0

I have an array of x and y co-ordinates (json objects) , when plotted they form a path. I am looking to group co-ordinates which fall in the same path into a group. As you can see there are two paths from start to finish.

enter image description here

Background: I am using phaserjs to build a game, the goal is to identify x,y co-ordinates so i can build a tween for a target object.

winner_joiner
  • 12,173
  • 4
  • 36
  • 61
Sudheej
  • 1,873
  • 6
  • 30
  • 57
  • can you share some code? what you have tried? can paths overlap? how is a path defined? infos like: how can wide can a path be? how can I tell where the path starts or finishes? how does the json look like? we need more information if we should be able help. – winner_joiner Mar 27 '23 at 21:30

0 Answers0