Skip to content

NPCs

Pedestrian

  • [70% Current NPC Pedestrian]
  • NPC Pedestrian Script (ground-following, output, screens)
  • Simple Pedestrian Walker Controller Script (duration, speed, examples - gifs)
  • Collider (screen)

NPC Pedestrian

The NPC Pedestrian is a non-playable humanoid object and used for simulation traffic flows.

Prefab files are placed under the follow paths.

Prefab Path
humanElegant.prefab AWSIM\Assets\AWSIM\Prefabs\NPCs\Pedestrians
humanElegantTest.prefab AWSIM\Assets\AWSIM\Scenes\Samples\NPCPedestrianSample

Supported features:

  • Move inverse kinematically based on Vector3 position.
  • Rotate inverse kinematically based on Vector3 rotation.

Sample scene

The sample scene that simulates the behavior of NPC Pedestrian is placed under AWSIM\Assets\AWSIM\Scenes\Samples directory.

NPC Pedestrian control scripts

NPCPedestrian.cs script that controls the pedestrian's behavior are placed under AWSIM\Assets\AWSIM\Scripts\NPCs\Pedestrians directory.

NPC Pedestrian API

The following section describes the API of NPCPedestrian.cs script.

API type feature
SetPosition Vector3 Move the NPC pedestrian so that the reference point is at the specified coordinates.
SetRotation Vector3 Rotate the NPC pedestrian so that the orientation of the reference point becomes the specified one.

Vehicles

  • [70% Current NPC Vehicle]
  • NPC Vehicle Script (axle settings, bounds - hyperlink to random traffic, turn signal, brake light , screens)
  • Colliders (significance of colliders, screens)

NPC Vehicle

The NPC Vehicle is a non-playable vehicle object and used for simulation traffic flows.

The following prefab files are placed under AWSIM\Assets\AWSIM\Prefabs\NPCs\Vehicles directory.

Supported features:

  • Move inverse kinematically based on Vector3 position.
  • Rotate inverse kinematically based on Vector3 rotation.

Sample scene

The sample scene that simulates the behavior of NPC Vehicle is placed under AWSIM\Assets\AWSIM\Scenes\Samples directory.

NPC Vehicle control scripts

NPCVehicle.cs script that controls the vehicle's behavior are placed under AWSIM\Assets\AWSIM\Scripts\NPCs\Vehicles directory.

NPC Vehicle API

The following section describes the API of NPCVehicle.cs script.

API type feature
SetPosition Vector3 Move the NPC Vehicle so that its x, z coodinates are same as the specified coordinates.
SetRotation Vector3 Rotate the NPC Vehicle so that its yaw becomes equal to the specified one.