ApericotStudio / Poltergeist

Main repository for development of the Poltergeist game
0 stars 0 forks source link

Fix: Realtor doesn't stay near visitor #482

Closed ThijsvanDijk closed 9 months ago

ThijsvanDijk commented 9 months ago

Description

Added a Raycast check to the sampled position on the NavMesh the Realtor chooses around the Visitor he is following. This ensures the actual point he chooses is inside the same room as the visitor.

Also reversed the NPC Priority, because i was dumb and set it up wrong before

Setting up testing environment

  1. In the project window navigate to Project/Assets/Scenes/UI and open the "Assignment" or "Final Exam" scene.
  2. Press Play.
  3. Open the console and try a command
  4. Quit the level and go to level select
  5. Select a level
  6. Try the console again

Fix Review

Realtor near Visitor

Criteria:

Checklist

These checks should always be true for your pull request

hassanmohamed2003 commented 9 months ago

i think testing environment is from a different PR lol