bird-oid
Version:
A 3D boid system with accompanying emergent behaviors. Implementation mostly based on Craig Reynolds paper Steering Behaviors For Autonomous Characters.
15 lines (14 loc) • 431 B
TypeScript
/// <reference types="gl-matrix" />
export default Obstacle;
/**
* Data structure used for obstacle avoidance behavior.
*/
declare class Obstacle {
/**
* @param {import("gl-matrix").vec3} position The center of the obstacle.
* @param {number} radius The radius of the sphere.
*/
constructor(position: import("gl-matrix").vec3, radius: number);
position: import("gl-matrix").vec3;
radius: number;
}