top of page

Fixing Cat's Basic Wander

  • zm02stor
  • Sep 4, 2022
  • 1 min read

The cats are currently able to scale walls by running against it. They are also moving repeatedly in a circular motion. Since other mechanics are to be implemented soon, an advanced wander AI will be added later so for now the wander AI will be fixed to appear more random and not in a complete circle.



In order to fix the wander, I ran some tests to see the cat's path after 60 seconds using the Debug.DrawLine() function.

The range of the random number was adjusted: 1000, 500, 250, 100 and 50.

[Current code]


1000:








500:











250:









100:














50:


This was the initial wander AI, the cat's would walk in a circle.









[discuss above^]


After analysing the movement of the cat's path I decided to increase the range to 250. [add more later]


Recent Posts

See All
Adding a player base

The player still did not have a safe space where they could stay in, or where the cat's cannot run into during their wander state. I...

 
 
 

Comments


ZAHRA MIAH

©2022 by Zahra Miah. Proudly created with Wix.com

bottom of page