Cube Random Movement

Опубликовано: 28 Декабрь 2017
на канале: Omar Santiago
8,811
85

Next video:    • Random Movement 2  

Have a gameobject (cube) move randomly about a scene. We are actually going to place a few random gameobjects for the cube to go between. We use a random function to tell it which point to move toward. When it reaches that destination it randomly picks a new one.

Index out of range error - check the waypoint tag name to make sure that the random waypoint array was populated? You can run the script in debug mode and put a breakpoint on the line stating it has the error to see what the values are and verify.

Source Code: https://github.com/omarvision/cube-ra...

Omarvision game programming tutorials, unity game engine. www.omarvision.com


На этой странице сайта вы можете посмотреть видео онлайн Cube Random Movement длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Omar Santiago 28 Декабрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 8,811 раз и оно понравилось 85 зрителям. Приятного просмотра!