UNPKG

bird-oid

Version:

A 3D boid system with accompanying emergent behaviors. Implementation mostly based on Craig Reynolds paper Steering Behaviors For Autonomous Characters.

16 lines (14 loc) 296 B
/** * Data structure used for path following behavior. */ class Path { /** * @param {import("gl-matrix").vec3[]} points An array of 3d points. * @param {number} radius */ constructor(points, radius) { this.points = points; this.radius = radius; } } export default Path;