Today’s stream was more chill than usual. I spent long amounts of time with no visitors. It really allowed me to focus. My goals for the stream were as follows:
- Get path finding / navigation working.
- Implement some kind of rudimentary cat AI. I wanted the cat to go through 3 activities randomly.
- Go to the cat bed and lie down
- Go to the litter box and no further detailed needed
- Go to some place in the room randomly
- Add cat in the place texture for the litter box
I got most of this done. I spent a lot of time reading the docs for godot 4 because I found that phind was not very helpful with this topic. I think I may cancel my subscription to phind – it hallucinates too much. For the navigation, I dumped using tile-based navigation and instead just added a simple NavigationRegion2D. To be honest, I had so much trouble with the tile editor to begin with, that I’m thinking about dumping the tile set as well and just having an image of the house that I draw. After I defined a simple NavigationRegion2D, the game was suddenly able to navigate much more easily. I think I was having issues with the navigation areas not being connected. Then I read up on NavigationObstacle2D and used that to make the cat avoid things like the dresser. This prevented the cat from getting stuck on the edge of the navigation areas. I think that this is a hack because there is apparently some kind of radius you can set on the navigation mesh? I have no idea how to do that. I went into overtime, trying to set things up correctly so that the cat would actually arrive at the destination – fiddling with the settings, but the cat always stopped short of the destination and never reached it. I’ll have to do some more digging to figure that out. I might see if I can get some help on the godot discord.
Here is what it looked like at the end of the stream:
I have a recording of the stream – I left myself on BRB too long by accident.