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

在Yuka js库中,RightShoulderFuzzySet对象具有一个uuid属性。该属性用于为每个模糊集对象分配唯一的标识符。

属性描述

  • 类型:字符串
  • 默认值:null
  • 可写性:只读

属性用途

RightShoulderFuzzySet对象的uuid属性旨在帮助用户更好地调试自己的代码。使用uuid属性,用户可以轻松地跟踪模糊集对象的创建、修改和删除,以便确定代码中出现的任何问题。

使用方法

为了使用uuid属性,只需创建一个新的RightShoulderFuzzySet对象,然后读取uuid属性即可。例如:

const myFuzzySet = new YUKA.RightShoulderFuzzySet(0, 10, 5);
console.log(myFuzzySet.uuid);

// 输出: 98a221a2-6a35-4393-b209-25519e6a5fdc

注意,每次创建新的RightShoulderFuzzySet对象时,都会生成一个新的uuid。因此,在比较两个模糊集对象时,不应使用它们的uuid属性来判断它们是否相等。

建议用途

虽然uuid属性不是必需的,但它是一个有用的调试工具。建议在调试代码时使用它。同时,可以使用uuid属性跟踪模糊集对象,以便在需要时更轻松地进行修改或删除。