This commit is contained in:
MindfulMinun
2022-02-27 01:02:47 -06:00
parent 71ede1885c
commit bb6eca33fb
6 changed files with 4839 additions and 627 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ public class CarScript : MonoBehaviour {
// Calculate distance to end
Vector2 distanceToFinish = absEndPosition - rb.position;
if (distanceToFinish.magnitude < 1) {
if (distanceToFinish.magnitude < .02) {
// If we're close enough to the end, reverse direction
Vector2 temp = absStartPosition;
absStartPosition = absEndPosition;