GKAgent3D
运行在3D中的代理。
概括
代理是根据现实约束移动的游戏实体,其行为由目标促使的移动决定。代理一般的功能由GKAgent抽象父类定义,但是,你使用GKAgent3D实例在基于代理的2D游戏中实现。
Topics
理代理的位置和方向(Managing an Agent’s Position and Orientation)
position
当前代理在3D空间中的位置。
rotation
代理在3D空间中的方向。
运行代理模拟(Running the Agent Simulation)
- updateWithDeltaTime:
使代理评估其目标并相应地更新其位置,旋转和速度。
velocity
代理在3D空间中当前的速度。
实例属性(Instance Properties)
rightHanded
关系
继承
GKAgent
默认遵守
NSCoding