.. _pedestrianTestScene: Pedestrian Test Scene ===== How To Use ------------ `Youtube tutorial. `_ #. Create :ref:`pedestrian nodes ` & connect them. #. Create a parent `GameObject` and add the :ref:`Pedestrian Local Spawner ` component. #. In the created component, press the :ref:`Show scene buttons `. #. Select the :ref:`pedestrian nodes ` in the scene where you want the pedestrians to spawn. .. image:: /images/testscenes/pedestrian/PedestrianDebugLocalSpawnerExample.png `Selection example.` #. Adjust the :ref:`Spawn count `. #. Start the scene. #. Click on the `Spawn` button in the component. #. Learn more about the :ref:`Pedestrian Local Spawner ` settings. .. _pedestrianLocalSpawner: Pedestrian Local Spawner ~~~~~~~~~~~~ .. image:: /images/testscenes/pedestrian/PedestrianDebugLocalSpawner.png .. _pedestrianLocalSpawnerCommonSettings: Common settings """""""""""""" | **Spawn on play** : spawn the pedestrian after the start of the scene. | **Show scene buttons** : show add :ref:`pedestrian node ` button to the component in the scene | **Hightlight added nodes** : on/off hightlight added :ref:`pedestrian nodes `. | **Hightlight radius** : hightlight radius. | **Show child nodes only** : only the child :ref:`pedestrian nodes ` will be shown. Spawn info """""""""""""" | **Pedestrian node** : linked :ref:`pedestrian node `. | **Spawn amount** : number of pedestrians that will be spawned in the :ref:`pedestrian node `. Test Cases ------------ Walking Test ~~~~~~~~~~~~ Test case to test the :ref:`walking parameters `. .. image:: /images/testscenes/pedestrian/WalkingTest.png `Source nodes.` .. image:: /images/testscenes/pedestrian/WalkingTest2.png `Result.` .. _pedestrianTalkAreaTest: TalkArea Test ~~~~~~~~~~~~ .. image:: /images/testscenes/pedestrian/TalkAreaTest.png `Source node.` .. image:: /images/testscenes/pedestrian/TalkAreaTest2.png `Result.` Crossroad Test ~~~~~~~~~~~~ Test case of pedestrians waiting at traffic lights and crossing the crossroad. .. image:: /images/testscenes/pedestrian/CrossroadTest.png `Source nodes.` .. image:: /images/testscenes/pedestrian/CrossroadTest2.png `Traffic waiting.` .. image:: /images/testscenes/pedestrian/CrossroadTest3.png `Crossing the road.` .. _pedestrianBenchTest: Bench Test ~~~~~~~~~~~~ Test case to test bench :ref:`seating `. .. image:: /images/testscenes/pedestrian/BenchTest.png `Source nodes.` .. image:: /images/testscenes/pedestrian/BenchTest2.png `Result.` .. _pedestrianHouseTest: House & Idle Test ~~~~~~~~~~~~ Test case for :ref:`idling ` and entering the :ref:`house `. .. image:: /images/testscenes/pedestrian/HouseTest.png `Source nodes.` .. image:: /images/testscenes/pedestrian/HouseTest2.png `Result.` .. _pedestrianNavigationTest: Navigation Test ~~~~~~~~~~~~ Test case for :ref:`navigation `. Red circle navigation is disabled. Green circle navigation is enabled. .. image:: /images/testscenes/pedestrian/NavigationTest.png `Source nodes.` .. image:: /images/testscenes/pedestrian/NavigationLocalAvoidanceTest.png `Local avoidance example.` .. image:: /images/testscenes/pedestrian/NavigationNavAgentTest.png `NavMesh navigating example.`