For the complete documentation index, see llms.txt. This page is also available as Markdown.

Complete API

All API methods are located inside Gley.PedestrianSystem.API

API Name

Adds a previously excluded pedestrian back to the Pedestrian System.

Adds a pedestrian to the nearest waypoint from the provided position.

Adds a pedestrian to the nearest waypoint from the provided position and automatically sets a destination for it.

Adds the pedestrian with the specified index to the nearest waypoint from the provided position.

Adds the pedestrian with the specified index to the nearest waypoint from the provided position and automatically sets a destination for it.

Disable all waypoints on the specified area.

Forbids a pedestrian to receive another waypoint. Useful for traffic lights.

Enable all disabled area waypoints.

An excluded pedestrian will never be instantiated by the system. Can be instantiated using API.

Get the current state of a Street Crossing Component.

Get the current running behaviour of a pedestrian.

Gets the index of the target waypoint of the pedestrian.

Returns the position of the target waypoint of the pedestrian.

Returns a list of all excluded pedestrians. Useful to manage the instantiation of specific pedestrians in specific locations.

Returns the position of the next waypoint of the pedestrian.

Returns a waypoint path between a start position and an end position for a specific pedestrian type.

Get the number of waypoints included in the pedestrian path.

Convert the pedestrian index to the Pedestrian script.

Get a specific pedestrian behaviour. Useful to call additional methods or set parameters on that behaviour.

Returns the index of the waypoint that the pedestrian just passed.

Returns the PedestrianWaypoint object for a given waypoint index.

Get the waypoint indexes that are included in the pedestrian path.

Initializes the entire Pedestrian System by adding all the necessary components before starting the Pedestrian System.

Insert a Vector3 position (which has no waypoint associated) as a target for a pedestrian.

Check if the Pedestrian System is initialized.

Check if the current waypoint of the pedestrian has the stop property set to true.

Verifies if a pedestrian has as a target a specific waypoint.

A properties class that is used to initialize the Pedestrian System.

Remove a predefined path for a pedestrian.

Remove a specific pedestrian from the scene bypassing the remove conditions of the Pedestrian System.

Removes a waypoint index from a pedestrian path. If the waypoint does not exist in the path, the method does nothing.

Force a waypoint request. This will make the pedestrian skip the current target.

Change the complete behaviour list for all pedestrians. The old behaviours list will be overridden.

Update the active camera that is used to remove pedestrians when they are not in view.

Update active cameras that are used to remove pedestrians when they are not in view. This is used in multiplayer/split-screen setups.

Set the state of a Street Crossing Component.

Calculates a path from the current position of the pedestrian to a specified destination.

A specific predefined path can be assigned to any active pedestrian within the Pedestrian System.

Change the complete beheviour list for a pedestrian.

Set the deviation between the waypoint that the pedestrian is using.

Start executing a specific behaviour.

Stop executing a specific behaviour.

Remove an obstacle from the pedestrian obstacles list.

Last updated