var steerVector : Vector3 =
transform.InverseTransformPoint(Vector3(path[currentPathObj].position.x ,
transform.position.y , path[currentPathObj].position.z)) ;
答案 0 :(得分:0)
检查您的waypoints
变量。也许只是数组类型,将其更改为Transform[]
。
实施例
var waypoints : Transform[];
waypoints = waypointContainer.GetComponentsInChildren.<Transform>();