Differential Line Growth

🔗 Code Example: Differential Line Growth

🔗 References:

🔗 Timestamps:

  • 1:58 Create a Node class

  • 7:21 Create an array of nodes in a circular shape

  • 10:08 Write an insert function to add nodes between existing nodes

  • 15:06 Use modulo (%) to wrap around index values

  • 18:01 Write steering behavior #1: Separation

  • 31:03 Write steering behavior #2: Cohesion

  • 37:42 Implement a quadtree to improve performance

  • 47:24 Create a method to constrain growth pattern within a boundary

  • 50:04 Create a function to limit max number of points

Next

Interactive Bridge with Bouncing Balls (matter.js + ml5.js)