Reverses the given path.



参数 描述
index The index of the path to change.

返回: N/A(无返回值)


With this function you can reverse the order in which the individual path points are numbered, so, for example, if the path has 5 points, point 0 would become point 4, point 1 would be point 3 and point 2 would not be changed. The actual position of the points remains the same, only the order in which they are processed is changed. This function changes the actual path resource, and so will permanently affect how the path is used by all instances in the game from the moment the function is used until the end of the game.



This would reverse the order in which all points on the path indexed in "path0" are processed.

上一页: Changing Paths
下一页: path_rotate
© Copyright YoYo Games Ltd. 2018 All Rights Reserved