Skip to main content

Best Practices When Designing

Scene Setup

To speed up iteration when developing it is best to develop specific scenes to help get the core of the loop you want down. These should have the bare minimum objects required for the flow you are trying to develop. This means a house, workplace and the items needed with the nav mesh setup. This should allow you to quickly debug any issues you face and gives a good soiled base when adding to your more complex scenes.

Methods should achieve the same state for the agent

When creating more than one method it is good to be aware that the system expects the agent to achieve the same state to be used effectively. This means if you have a method which is meant to find a specific item within the scene, if you have another method for that parent node it should get the same specific item or equivalent but by different means. This could mean instead of using the work supply they use their own supply, or they travel to buy it from somewhere. In each of the scenarios mentioned the end result is the same but just achieved by different means.