Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How to use the loop flag with the waypoints ?

$
0
0
If loop is true then either if the object is moving forward or backward keep move it that direction in loop.

And if loop is false then either if it's in backward or forward direction like now just move forward/backward between all waypoints. from 0 to last then from last to 0 like a ping pong between all waypoints.

I'm not sure how to use the loop flag in the Move() function.

Code (csharp):
  1.  
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using...
How to use the loop flag with the waypoints ?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>