HomeGamesUpdatesPricingMethodology
Steam News23 July 20205y ago

Behind the Scenes of Beetle Uprising: The Navmesh

Continuing our short look at some of the behind-the-scenes goings on with Beetle Uprising, this time we're talking about the navmesh. Below is a screenshot of the Unity navmesh editor.

Full notes

Full Beetle Uprising update

Read the full published notes in a cleaner layout. The original post stays linked below.

What changed

0 fixes0 additions3 changes0 removals
  • Maps
changedBelow is a screenshot of the Unity navmesh editor. It shows one of our earlier levels with the navmesh highlighted. We use terrain steepness to limit walkability, and have a few invisible "fence" objects (you can see some straight blocks that cut the nav mesh) we use to keep players and enemies from wandering outside the play area.
changedWe needed to keep players from clicking on navmesh that is auto-generated but is outside the play area, so we wrote code that determines if a click is pathable from a few "starting locations" that are inside the play area. We needed more than one of those objects to deal with situations where doors open and change the play area. If you run your mouse over a map, you can see the cursor change to indicate that you are inside or outside the legal area.
changedWe would sometimes have bugs where enemy spawners would not push beetles into the play area, because we like them coming out of holes and other difficult bits of terrain. They might fall through the floor, or pile up inside a cave. So tweaking the spawner location was always fun. Something else about spawners: they have a starting location, but also an implicit move-to is given to each enemy with an optional remote location. This makes it seem like the bugs rush out when triggered, then gather in a staging area, waiting until their Perception area overlaps with one of your beetles. Then the fight is on!

Beetle Uprising changes

changedBelow is a screenshot of the Unity navmesh editor. It shows one of our earlier levels with the navmesh highlighted. We use terrain steepness to limit walkability, and have a few invisible "fence" objects (you can see some straight blocks that cut the nav mesh) we use to keep players and enemies from wandering outside the play area.
changedWe needed to keep players from clicking on navmesh that is auto-generated but is outside the play area, so we wrote code that determines if a click is pathable from a few "starting locations" that are inside the play area. We needed more than one of those objects to deal with situations where doors open and change the play area. If you run your mouse over a map, you can see the cursor change to indicate that you are inside or outside the legal area.
changedWe would sometimes have bugs where enemy spawners would not push beetles into the play area, because we like them coming out of holes and other difficult bits of terrain. They might fall through the floor, or pile up inside a cave. So tweaking the spawner location was always fun. Something else about spawners: they have a starting location, but also an implicit move-to is given to each enemy with an optional remote location. This makes it seem like the bugs rush out when triggered, then gather in a staging area, waiting until their Perception area overlaps with one of your beetles. Then the fight is on!

Continuing our short look at some of the behind-the-scenes goings on with Beetle Uprising, this time we're talking about the navmesh.

Below is a screenshot of the Unity navmesh editor. It shows one of our earlier levels with the navmesh highlighted. We use terrain steepness to limit walkability, and have a few invisible "fence" objects (you can see some straight blocks that cut the nav mesh) we use to keep players and enemies from wandering outside the play area.

Steam post image

We needed to keep players from clicking on navmesh that is auto-generated but is outside the play area, so we wrote code that determines if a click is pathable from a few "starting locations" that are inside the play area. We needed more than one of those objects to deal with situations where doors open and change the play area. If you run your mouse over a map, you can see the cursor change to indicate that you are inside or outside the legal area.

We would sometimes have bugs where enemy spawners would not push beetles into the play area, because we like them coming out of holes and other difficult bits of terrain. They might fall through the floor, or pile up inside a cave. So tweaking the spawner location was always fun. Something else about spawners: they have a starting location, but also an implicit move-to is given to each enemy with an optional remote location. This makes it seem like the bugs rush out when triggered, then gather in a staging area, waiting until their Perception area overlaps with one of your beetles. Then the fight is on!

Source

Steam News / 23 July 2020

Open original post

Changelog.gg summarizes and formats this update. How we read updates.