|
Any idea how do I move an object in loop from point A to Point B when it reachs a Point C? Thanks.
(comments are locked)
|
|
Not sure if that's what you want, but to check if Point C was reached you can use a Trigger. (Collider that is setup as a trigger) To move something from A to B over a fixed amount of time you can write a Coroutine which is starte when Point C is reached. The coroutine would look something like this:
To start the coroutine the trigger object will need a script like this:
(comments are locked)
|
