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

uuid

概述

uuid (Universally Unique Identifier),通常称为GUID (Globally Unique Identifier) 是一种数字标识符,它被用于为分布式计算环境中的信息进行唯一标识。Yuka js库中的LeftShoulderFuzzySet对象包含了与uuid相关的配置。

参数

  • uuid:表示uuid的唯一标识符,作为LeftShoulderFuzzySet对象的一个属性,在创建对象时必须进行指定。

方法

  • getUuid():用于获取uuid的唯一标识符。

使用示例

import { LeftShoulderFuzzySet } from 'yuka';

const uuid = 'f48dfe7c-8cbb-4da5-928c-0c53e4d8c663';

const set = new LeftShoulderFuzzySet( 1, 3, 5 );
set.uuid = uuid;

console.log( set.getUuid() ); // 输出 'f48dfe7c-8cbb-4da5-928c-0c53e4d8c663'

在创建LeftShoulderFuzzySet对象时,可以通过传入uuid来唯一标识该对象。通过 getUuid() 方法可以获取该对象的uuid值。