NavMesh

The navigation mesh, also known as the , 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 is also responsible for making other objects move, such as items.
== Description ==
It is a data structure built within the Unity engine, which is one of the most important factors that allows NPC movement.
== Functionality ==
=== Characters ===
==== General ====
===== 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 getting around.
==== Baldi's Basics Plus ====
===== 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.
* thumb|Baldi searching for a shape.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 the player, 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.
** He moves if the player does not look at him.
*** This feature was originally implemented into It's a Bully in the camping field trip prior to Baldi's Basics Plus V0.2.2, where he will slowly move towards the player when they are not looking at him.
* Every time they look away from him, his speed will gradually increase, until the ninth time they look away from him — 7th the second time he spawns — where he will instantly teleport towards and blind them.
=====Dr. Reflex=====
* He spawns in his respective clinic.
* Dr. Reflex roams around the schoolhouse at a normal speed.
**When he reaches his destination, he will stop for a second, turn towards the direction of another destination, and start walking towards that destination.
*If angered, he will run towards his clinic to grab his giant percussion hammer.
**When chasing after the player, or when running in general, his speed is increased.
***While Dr. Reflex is attacking the player, he will do so whilst standing in place, and will be able to move again after he attacks.
==== 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.
===== =====
* There is a secret, invisible Placeface in the left-wing of the Schoolhouse. It can be found by decompiling the game in Unity.
** This is absent of a .
===== 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 ====
==== 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.
==== 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 "" 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.
===== Baldi =====
* Baldi will gradually get faster after only one elevator is left. Other NPCs will disappear at this time.
===== Playtime =====
* Playtime does not get sad even if her minigame is interrupted.
==== 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.
=== Items ===
* They move up and down when they have not been collected by the player yet.
==== Notebook ====
* They move up and down when they have not 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 cannot get to where they shot the grappling hook, it snaps and breaks the player free.
** This can also be used to escape Mrs Pomp.
==== Big Ol' Boots====
* When pressing the "Item" key at any time, the Big Ol' Boots will prevent the player 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 them until the cooldown for the Big Ol' Boots end.
** Gotta Sweep if he is "sweeping" the player in an area they do not want to be
** A whirlpool pulling the player
*** The player can still fall in.
==== Dangerous 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.
==== BSODA ====
* When pressing the "Item" key, a blue splash texture goes forward in whatever direction they 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 could not 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 the player, he will instead grab An Apple and stand still for 15 seconds — 5 seconds for thanking the player for An Apple, 10 seconds of eating it — until resuming to trying to catch them.
==== 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
==== Faculty Nametag ====
* When pressing the "Item" key at any time, the player 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 they break a rule.
** Playtime will not try to go to the player to play her minigame.
** Beans will stay in his "wander" state, even if he can see them.
** Mrs. Pomp will do nothing about the player, and will not run toward them if she sees them.
** Chalkles gets disabled.
* If they get an interaction with a character, and put on the faculty nametag after that, they will still try and interact with them.
** This case is most common for the Principal.
=== Random events ===
==== Flood ====
* 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 NPCs as well, except for Chalkles.
* 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 Chaos ====
* 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 Chaos". Once they have found the gravity flipper, they will resume to getting to the player. 
==== Party ====
* 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 them, except the Principal.
* Instead of dashing to the Principal's Office, Gotta Sweep will go there at a calm speed.
* If they 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.
=== Structures ===
==== 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.
==== 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.
==== Conveyor belt ====
* 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.
==== Locker ====
* When pressing the "Interact" key on a blue locker, the perspective gets changed to being inside of the locker. The player cannot move inside of the blue locker.
** If Baldi, Principal of the Thing or Mrs. Pomp (when shes aggravated) sees they enter a locker, they will stand by the locker until the time they exit.
==== Math Machine 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.
== Trivia ==
* The does not cover the exits, 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 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.
* When a character finds a new area to navigate to, there is a 1/50 chance an ambience called "Pathfinding" could be heard.
== Navigation ==
Category:Game mechanics
Category:World development