NavMesh

The **navigation mesh**, also known as the **`NavMesh`**, is a data structure that aids most NPCs in navigating through the Schoolhouse and the Super Schoolhouse. Without it, they would be stationary, and look like a plain and ordinary image. This `**NavMesh**` is also responsible for making other things move, such as items.

## Description

### General

It is a data structure built within the Unity engine, which lets most NPCs move around.

### *Baldi's Basics Plus*

#### The player

* The player is a character that can be fully controlled and moved by whoever plays as "The player".
* There are two ways the player can transport themselves across the Schoolhouse/Super Schoolhouse:
	+ Walking When only using the "WASD" to go around the schoolhouse, the player will walk.
	+ Sprinting When using "WASD" and holding "Shift", the player will start sprinting. This is a much faster way of transportation.

#### Baldi

* He will go towards the loudest noise that he remembers and that the player made.
	+ If a tape player or the pay phone is making noise, he gets "disorientated" (as quoted in the former name, Baldi Anti Hearing and Disorienting Tape) and forget all noises the player made.
* If the Gravity Chaos event happens, Baldi will try and find the nearest shape to run into so he can catch the player.
	+ This also applies to other characters who chase after the player.
* In the Grapple Challenge, Baldi is faster than normal when collecting notebooks.

#### Playtime

* She roams the hallways, but never goes into rooms, unless if she is chasing the player.
* She will begin chasing the player if they are in her line of sight, as she is mentioned "short-sighted", as if they turn a corner, she will change the direction.
	+ In some cases, Playtime might not go back but still chase the player until they turn another corner. This usually happens when the player and Playtime are close to each other.

#### Principal of the Thing

* He will monitor and roam the school.
	+ He is able to enter classrooms normally.
		- Baldi and Mrs. Pomp can do this in their wander state.
* If he ever sees the player breaking the school rules, he will begin chasing the player, and once he comes in contact with them, he will teleport them (and the Principal) to the Principal's office.
* If the player uses the Principal Whistle, he will go to spot where this item is used at a fast speed.
* In the Stealthy Challenge, after Principal of the Thing scolds the player, he cannot lose them, even if they are in a blue locker or hiding in a Dirty Chalk Eraser cloud.
* The player can lose the Principal.
* In *Baldi's Basics Full Game Public Demo*, when holding "Shift" with no stamina, and Principal of the Thing sees you, he will still scold the player for running in the halls even though the player was walking.

#### It's a Bully

* It's a Bully will teleport a random location in the Super Schoolhouse.
	+ He will never move in any other way.
* When It's a Bully is sent to Principal's office by Principal of the Thing, he will teleport to the center of the office.

#### 1st Prize

* He roams the school slowly, and will stop roaming when he sees the player. Just like Playtime, he cannot enter classrooms normally, unless he follows the player into one.
	+ This commonly happens in the flood event.
* He starts accelerating at the player when facing towards them.
	+ He is only able to push the player.
	+ If 1st Prize accelerates at a certain speed or greater, he can break windows, allowing any character to walk through them.

#### Arts and Crafters

* When collecting the maximum amount of notebooks in Hide-and-Seek and Explorer Mode/7 or more notebooks in Endless Mode, Arts and Crafters will start accelerating toward the player when seen by them.
	+ After he reaches the player, he will orbit the player for 10 seconds and send both the player and Baldi to one of the open elevators on the map.

#### Gotta Sweep

* Gotta Sweep spawns in his closet.
	+ He can slow any character down when colliding with him.
* After a 120 second cooldown, Gotta Sweep will start roaming the halls at a fast speed.
	+ The specific path he goes is randomized every time he sweeps.
	+ He will push any character around, unlike 1st Prize.
		- This does not apply to the the player if they are in the opposite orientation of Gotta Sweep when the Gravity Chaos event happens.
			* However, NPCs are still affected by Gotta Sweep's sweeping if they are in the opposite orientation.

* While he is "sweeping", he may randomly stop in a hallway.

#### Cloudy Copter

* He roams the halls and blows wind across characters.
	+ The time he blows and the destinations he has are differentiated.

#### Beans

* He roams around the halls, and sometimes runs.
* When he sees the player, he will stop and start chewing gum, and a bit later, spit it out.
	+ This can hit any character, intensely slowing them down.

#### Mrs. Pomp

* She roams the hallways at a regulated speed.
* When she sees the player, she starts to speed up to get to the player.
	+ She will tell the player to go to her class in a timespan of 2 minutes.
		- All of the characters freeze when she says this.
* She will again speed up to the player's destination - her classroom.
	+ Prior to V0.3.3, she still went at her regulated speed while going to her classroom, letting the player follow her.
* If the player never goes to the specific classroom, she will await the player when they enter a room.
	+ When this happens, she will bring the player over to her classroom, at a high speed.
		- If the player ever uses the Big Ol' Boots or enters a blue locker, Mrs. Pomp will rebound toward the player until the cooldown for the Big Ol' Boots ends or the player leaves the locker.

#### Chalkles

* In some classrooms, there is a blank chalkboard where Chalkles spawns.
	+ He will gradually become solid while the player is in the classroom.
	+ If the player stays in a classroom with Chalkles for too long, he will start circling around in the classroom and start laughing.
		- This action locks the doors, while also alerting Baldi to the tile where Chalkles' chalkboard was.
		- After 15 seconds, Chalkles will circle toward the ceiling, and disappear, momentarily unlocking the doors.

#### The Test

* He can be spotted in any spot of the Super Schoolhouse of some seeds, and in some seeds of Endless Mode, Medium or Random.
* When looking at him for 5 seconds, he freezes every character and gains the ability to move.
	+ The way he moves is if the player doesn't look at The Test.
		- This feature was originally implemented into It's a Bully, where he will slowly move towards you when you aren't looking at him.

* Every time you look away from him, his speed will gradually increase, until the 9th time you look away from him — 7th the second time he spawns — where he will instantly teleport towards you and blind you.

### *Baldi's Basics Classic*

#### Playtime

* In V1.0, Playtime would always sense where the player is, even if they were not in her line of sight. The simplified way of saying this is, she could not lose the player if she saw them.
	+ She could even detect the player through the walls.
* She may also randomly open closed doors, and in most cases, doors that the player has went through, that get closed.

#### Principal of the Thing

* Once Principal of the Thing scolds the player, he never loses them, so he will always knows where they are.
	+ Even with the use of hacks, if the player is out of bounds, Principal of the Thing will follow the player whilst still inside of the schoolhouse.

#### `PlaceFace`

* There is a secret, invisible Placeface in the left-wing of the Schoolhouse. It can be found by decompiling the game in Unity.
	+ This `PlaceFace` is absent of a `**NavMesh**`.

#### Arts and Crafters

* He will roam the Schoolhouse at a really fast speed, while sometimes invisible.
	+ There are triggers hidden around the classic Schoolhouse that when walked on, will make Arts and Crafters go to a specific location.
* After Arts and Crafters comes in contact with the player, Baldi and the player will be immediately teleported to the starting point, without an animation.
* When Arts and Crafters gets aggravated, he will know where the player is regardless, so even with the use of hacks, he will follow the player while still in the walls.

#### It's a Bully

* It's a Bully can only spawn in designated locations where a Quarter can spawn.
* He never moves, except for an instance in Party Style of *Baldi's Basics Classic Remastered.*

### *Baldi's Basics Birthday Bash*

#### `Baldloon`

* `Baldloon`s are corrupted Baldi sprites with the colors of normal balloons and they move around like normal balloons.
* There is a red one, that can follow the player around.

### *Baldi's Basics Classic Remastered*

#### Baldi

* His slapping speed was reduced, making it easy to outrun him.
	+ When getting 7 notebooks with all questions wrong, the player will still be able to outrun him with the help of sprinting, or a Zesty bar.
		- This does not apply when playing with Hard Mode, as Baldi is faster than the player's running speed.

#### Playtime

* Her speed was reduced, being faster than the player's walking speed, but slower than their walking speed.

#### Arts and Crafters

* When looking at Arts and Crafters for a short period of time, he navigates his way to a different location.
* Unlike *Baldi's Basics Classic* and *Birthday Bash*, there is an animation before teleporting.

#### Null

* In NULL Style, he would move similarly to how Baldi moves, but 1.5 - 2.5 tiles more than how much Baldi can move.
* There is a Principal Whistle in one of the faculty rooms, that when used, will make Null go really fast, and arrive to the location the player used it.
	+ If the player uses the Principal Whistle before the bossfight begins, Null will still be fast, just at a reduced speed.
	+ Null moves the same speed when getting 3/4 exits as using the Principal Whistle.

#### Red `Baldloon`

* In Party Style's normal ending, red Baldloons will chase the player in a straight line.
	+ Their straight line is where the player was when they spawned.
		- They will change their path to go back to the players location again, and again.
			* The way they move around is similar to a slippery plane.

* After a minute or two, the `Baldloon`s start going extremely fast.
	+ The player also gets this same speed boost.

* When Null gets defeated, a red `Baldloon` replaces Null, with the same functions.

### *Baldi's Basics - Field Trip demo: Camping*

#### It's a Bully

* He would creep up on the player (or, move closer to them) when they are not looking at him, and steal all their sticks.
	+ He can only do this once per run.

#### Arts and Crafters

* Arts and Crafters will spawn once the player finds a "**NO**" sign and walks past it.
	+ He will simply take them to the campfire once he reaches them. However, after the campfire is out, he can teleport Baldi to near the campfire as well.

#### Cloudy Copter

* He will fall from the sky at some stage, blowing toward the campfire.
	+ When walking up to him, he disappears.

### *Baldi's Basics Full Game Early Demo*

Some characters use old mechanics, but there is a unique mechanic in this demo.

#### Playtime

* Playtime does not get sad even if her minigame is interrupted.

#### Baldi

* Baldi will gradually get faster after only one elevator is left. Other NPCs will disappear at this time.
	+ He will also know where the player is, even if the player stays silent for a long period of time.

### *Baldi's Basics - Challenges Demo*

Most of the character mechanics are similar to *Baldi's Basics Plus*.

#### Baldi

* His slap rate is shortened in the Grapple Challenge, to compensate with the Grappling Hook's fast speeds.

#### Principal of the Thing

* Similar to Baldi's Basics Plus, he cannot lose the player in the Stealthy Challenge after spotting them.

#### Mrs. Pomp

* She uses her old mechanism, as the player can lose her.

### *Other*

This is a list of other things that also uses a `**NavMesh**`.

#### Items

* They move up and down when they haven't been collected by the player yet.

##### Notebook

* They move up and down when they haven't been collected by the player yet, similar to the item,

#### Grappling Hook

* When pressing the "*Item*" key on any wall, the grappling hook will glide the player across the floor to the designated location.
	+ If the player is stuck and can't get to where they shot the grappling hook, it snaps and breaks the player free.
	+ This can also be used to escape Mrs Pomp, *temporarily*.

#### Big 'Ol Boots

* When pressing the "*Item*" key at any time, the Big Ol' Boots will prevent you from being moved by objects. These are:
	+ Conveyor belts moving the player
	+ Cloudy Copter if he blows the player down a hall
	+ 1st Prize if he is pushing the player
	+ Mrs. Pomp if she drags the player to her class
		- As mentioned before, she will keep on rebounding toward you until the cooldown for the Big Ol' Boots end.
	+ Gotta Sweep if he is "sweeping" the player in an area they don't want to be
	+ A whirlpool pulling the player
		- The player can still fall in.

#### Dangerous Teleporter / Teleportation Teleporter

* When pressing the "*Item*" key at any time, the Dangerous Teleporter will teleport the player 10-14 times to random locations until the last teleportation, as it will result in the player being somewhere else on the map.

#### Conveyor Belts

* Conveyor belts can be found anywhere and will push the player in the direction it's moving towards.
	+ There can be buttons that when pressed, will change the direction of the conveyor belt.
	+ If Cloudy Copter ends up pushing the player in the opposite direction of where the conveyor belt is moving towards, the conveyor belt nor Cloudy Copter can take action.
	+ They can move any character, including The Test.

#### BSODA

* When pressing the "*Item*" key, a blue splash texture goes forward in whatever direction you used it in, which pushes any character — except for The Test — in the way.
	+ They can also go through walls.

* Prior to V1.2 of *Baldi's Basics Classic*, the BSODA couldn't push characters due to an error, but can rarely work.

#### Safety Scissors

* When pressing the "*Item*" key in Playtime's minigame, it lets the player break free of her jump rope and ends the minigame.
* When pressing the "*Item*" key when in Beans' bubblegum, it lets the player get rid of the bubblegum.
* When pressing the "*Item*" key on 1st Prize, he will stop his movement entirely for 30 seconds before resuming to wandering around.

#### An Apple for Baldi

* When Baldi catches you, he will instead grab your apple and stand still for 15 seconds — 5 seconds for thanking the player for the apple, 10 seconds of eating it — until resuming to trying to catch you.

#### Principal Whistle

* When pressing the "*Item*" key, the Principal of the Thing will go to the tile where this was used at a fast speed. Once he reaches the tile, he returns to normal speed.
* When using the Principal Whistle outside of the walls, (possible by using Debug Mode) Principal of the Thing will go to the player, but then get stuck after reaching the location.
	+ The Principal of the Thing can be moved around outside of the boundaries, by just using multiple Principal Whistles.
* When pressing the "*Item*" key in NULL/Glitch Style, Null or the red `Baldloon` will go to the tile this was used at a fast speed, but unlike Principal of the Thing, they will have a permanent speed boost.

#### Whirlpool (Flood Event)

* In the flood event, the whirlpool will pull the player towards it with strong pressure, until the player enters it, which the whirlpool pulls the player down toward the floor and teleports the player to another whirlpool.
	+ This applies to characters as well.

* In *Baldi's Basics Full Game Early Demo*, instead of the whirlpool teleporting the player, it traps the player in it for a few seconds before taking an item from the player.
	+ The pressure that drags the player is light, so light that the player could even walk out of the whirlpool while trapped.

#### Gravity flippers

* In the Gravity Chaos event, if the player is in opposite orientation of a character, they will ignore the player and proceed to try and locate a "*Gravity flipper*". Once they have found the gravity flipper, they will resume to getting to the player. (*This feature was mentioned back in the Baldi's Basics Plus sub-heading on Baldi.*)

#### Locker

* When pressing the "*Interact*" key on a blue locker, your perspective gets changed to being inside of the locker. You can't move inside of the blue locker.
	+ If Baldi, Principal of the Thing or Mrs. Pomp (when shes aggravated) sees you enter a locker, they will stand by the locker until the time you exit.

#### Faculty Nametag

* When pressing the "*Item*" key at any time, you will turn into a faculty for 30 seconds. This causes the following changes:
	+ Principal of the Thing will stay in his "wander" state, no matter if you break a rule.
	+ Playtime won't try to go to the player to play her minigame.
	+ Beans will stay in his "wander" state, even if he can see you.
	+ Mrs. Pomp will do nothing about the player, and won't run toward them if she sees them.
	+ Chalkles gets disabled.

* If you get an interaction with a character, and put on the faculty nametag after that, they will still try and interact with you.
	+ This case is most common for the Principal.

#### Party Event

* When this event occurs, every character will go to the Principal's Office and stand still after reaching their destined location.
	+ When entering the Principal's Office, the characters there can still interact with you, except the Principal.

* Instead of dashing to the Principal's Office, Gotta Sweep will go there at a calm speed.
* If you are scolded by the Principal and the Party Event happens, he will freeze in place until the Party Event ends.
	+ Running into him will unfreeze him.

#### Baldi's Math Machine

* When answering the math machine correctly, Baldi will pause for 5 seconds, congratulating the player for answering it correctly, and then resume to trying to catch the player.

##### Number balloons

* They move around a classroom slowly. When pressing the "*Interact*" key on them, the desired number will be shown — close up — on the player's screen, which can be used for answering Baldi's Math Machine.

#### Balloons

* In *Baldi's Basics Birthday Bash* and Party Style of *Baldi's Basics Classic Remastered*, there are balloons that move around slowly in classrooms and sometimes in the halls.
	+ For an unknown reason, balloons in *Baldi's Basics Birthday Bash* function as characters, as they can open swinging doors, but not regular doors.

## Trivia

* The `**NavMesh**` does not cover the exits and elevators, so NPCs (except for It's a Bully and Chalkles) cannot move through them, preventing to clip through them.
	+ If the player steps out of the area where the `**NavMesh**` does not cover, Baldi may move without synchronization in his ruler slap intervals, or for other characters, begin moving again. This only works if they can see the player, as they will keep on moving if they cannot.
		- If a character somehow ends up entering an elevator or exit, either by being teleported there, they can move perfectly fine while inside.
	+ The Test can spawn in the elevator in extremely rare circumstances.

* When a character finds a new area to navigate to, there is a 1/50 chance an ambience called "Pathfinding" could be heard.