AABB
AlignmentBehavior
ArriveBehavior
AStar
BFS
BoundingSphere
BVH
BVHNode
Cell
CellSpacePartitioning
CohesionBehavior
CompositeGoal
ConvexHull
Corridor
CostTable
DFS
Dijkstra
Edge
EntityManager
EvadeBehavior
EventDispatcher
Behavior
FollowPathBehavior
FuzzyAND
FuzzyCompositeTerm
FuzzyFAIRLY
FuzzyModule
FuzzyOR
FuzzyRule
FuzzySet
FuzzyTerm
FuzzyVariable
FuzzyVERY
GameEntity
Goal
GoalEvaluator
Graph
GraphUtils
HalfEdge
HeuristicPolicyDijkstra
HeuristicPolicyEuclid
HeuristicPolicyEuclidSquared
HeuristicPolicyManhattan
InterposeBehavior
LeftSCurveFuzzySet
LeftShoulderFuzzySet
LineSegment
Logger
MathUtils
Matrix3
Matrix4
MemoryRecord
MemorySystem
MeshGeometry
MessageDispatcher
MovingEntity
NavEdge
NavMesh
NavMeshLoader
NavNode
Node
NormalDistFuzzySet
OBB
ObstacleAvoidanceBehavior
OffsetPursuitBehavior
OnPathBehavior
Path
Plane
Polygon
Polyhedron
PriorityQueue
PursuitBehavior
Quaternion
Ray
RectangleTriggerRegion
Regular
RightSCurveFuzzySet
RightShoulderFuzzySet
SAT
SeekBehavior
SeparationBehavior
SingletonFuzzySet
Smoother
SphericalTriggerRegion
State
StateMachine
SteeringBehavior
SteeringManager
Task
TaskQueue
Telegram
Think
Time
TriangularFuzzySet
Trigger
TriggerRegion
Vector3
Vehicle
Version
WanderBehavior

index

Yuka是一个基于JavaScript的AI库,旨在提供一个简单易用的框架,通过构建信息处理逻辑和适应环境来创建智能体。本文将介绍Yuka js库的Node的index文件,包含了所有的导入和导出信息。

导入

import Agent from './core/Agent.js';
import AutonomousBehavior from './core/AutonomousBehavior.js';
import FuzzyBehavior from './core/FuzzyBehavior.js';
import SteeringBehavior from './core/SteeringBehavior.js';
import Path from './navigation/Path.js';
import PathSegment from './navigation/PathSegment.js';
import GridFinder from './navigation/GridFinder.js';
import GridNode from './navigation/GridNode.js';
import BinaryHeap from './core/BinaryHeap.js';
import AStar from './pathfinding/AStar.js';
import Blocker from './pathfinding/Blocker.js';
import Line2 from './math/Line2.js';
import Vector2 from './math/Vector2.js';
import Matrix3 from './math/Matrix3.js'; 

上述代码展示了Yuka js库的所有导入信息,包括了core文件夹下的智能体Agent、自主行为AutonomousBehavior、模糊行为FuzzyBehavior、导航行为SteeringBehavior等;navigation文件夹下的导航路径Path、路径段PathSegment、网格查找器GridFinder、网格节点GridNode等;pathfinding文件夹下的A星算法AStar、阻塞器Blocker等;math文件夹下的二维线段Line2、二维向量Vector2和三维矩阵Matrix3等。

导出

export {
  Agent,
  AutonomousBehavior,
  FuzzyBehavior,
  SteeringBehavior,
  GridFinder,
  GridNode,
  Path,
  PathSegment,
  BinaryHeap,
  AStar,
  Blocker,
  Line2,
  Vector2,
  Matrix3
};

上述代码展示了Yuka js库的所有导出信息,包括了core文件夹下的智能体Agent、自主行为AutonomousBehavior、模糊行为FuzzyBehavior、导航行为SteeringBehavior等;navigation文件夹下的导航路径Path、路径段PathSegment、网格查找器GridFinder、网格节点GridNode等;pathfinding文件夹下的A星算法AStar、阻塞器Blocker等;math文件夹下的二维线段Line2、二维向量Vector2和三维矩阵Matrix3等。

以上是Yuka js库的Node的index文件的导入和导出信息说明。