├── .gitignore ├── Assets ├── Materials.meta ├── Materials │ ├── Pedestrian.mat │ └── Pedestrian.mat.meta ├── Pedestrian.prefab ├── Pedestrian.prefab.meta ├── Plugins.meta ├── Plugins │ ├── x86.meta │ ├── x86 │ │ ├── MengeCore.dll │ │ └── MengeCore.dll.meta │ ├── x86_64.meta │ └── x86_64 │ │ ├── MengeCore.dll │ │ └── MengeCore.dll.meta ├── Scripts.meta ├── Scripts │ ├── MengeCS.dll │ ├── MengeCS.dll.meta │ ├── SimController.cs │ └── SimController.cs.meta ├── _Scenes.meta └── _Scenes │ ├── scene_01.unity │ └── scene_01.unity.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityAdsSettings.asset └── UnityConnectSettings.asset ├── README.md ├── ReleaseNotes.txt └── doc └── images ├── 4_blocks.PNG └── 4_blocks_sim.PNG /.gitignore: -------------------------------------------------------------------------------- 1 | ## Local, custom ignores 2 | log.css 3 | 4 | ## Github's default Unity ignores 5 | 6 | /[Ll]ibrary/ 7 | /[Tt]emp/ 8 | /[Oo]bj/ 9 | /[Bb]uild/ 10 | /[Bb]uilds/ 11 | /Assets/AssetStoreTools* 12 | 13 | # Autogenerated VS/MD solution and project files 14 | ExportedObj/ 15 | *.csproj 16 | *.unityproj 17 | *.sln 18 | *.suo 19 | *.tmp 20 | *.user 21 | *.userprefs 22 | *.pidb 23 | *.booproj 24 | *.svd 25 | 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | 30 | # Unity3D Generated File On Crash Reports 31 | sysinfo.txt 32 | 33 | # Builds 34 | *.apk 35 | *.unitypackage 36 | -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b2f81f64cb9ab049ad1257f3e6330b0 3 | folderAsset: yes 4 | timeCreated: 1480275510 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Materials/Pedestrian.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/Assets/Materials/Pedestrian.mat -------------------------------------------------------------------------------- /Assets/Materials/Pedestrian.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1980aed4e3dab3e4b83089073e9f15cb 3 | timeCreated: 1480275530 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Pedestrian.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/Assets/Pedestrian.prefab -------------------------------------------------------------------------------- /Assets/Pedestrian.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07a5f7178cf9f4d4cbf609967fff93fd 3 | timeCreated: 1480275626 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 868047c5051e9934a9d86e74fdc7f671 3 | folderAsset: yes 4 | timeCreated: 1480882892 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8948ccfe57b82dd4cb45e026e45d9766 3 | folderAsset: yes 4 | timeCreated: 1483917264 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/MengeCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/Assets/Plugins/x86/MengeCore.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86/MengeCore.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12542324922e62342a4e9ec69dbe9c76 3 | timeCreated: 1483916275 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 0 13 | settings: 14 | CPU: AnyCPU 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | CPU: x86 22 | DefaultValueInitialized: true 23 | OS: Windows 24 | Linux: 25 | enabled: 1 26 | settings: 27 | CPU: x86 28 | Linux64: 29 | enabled: 1 30 | settings: 31 | CPU: x86_64 32 | LinuxUniversal: 33 | enabled: 1 34 | settings: 35 | CPU: AnyCPU 36 | OSXIntel: 37 | enabled: 1 38 | settings: 39 | CPU: AnyCPU 40 | OSXIntel64: 41 | enabled: 1 42 | settings: 43 | CPU: AnyCPU 44 | OSXUniversal: 45 | enabled: 1 46 | settings: 47 | CPU: AnyCPU 48 | Win: 49 | enabled: 1 50 | settings: 51 | CPU: AnyCPU 52 | Win64: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | userData: 57 | assetBundleName: 58 | assetBundleVariant: 59 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3421eda99fd339945a3536c311528980 3 | folderAsset: yes 4 | timeCreated: 1483917264 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/MengeCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/Assets/Plugins/x86_64/MengeCore.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/MengeCore.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba4ff965650f60244972d6bf522c8a55 3 | timeCreated: 1483917264 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 0 13 | settings: 14 | CPU: AnyCPU 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 1 20 | settings: 21 | CPU: x86_64 22 | DefaultValueInitialized: true 23 | OS: Windows 24 | Linux: 25 | enabled: 0 26 | settings: 27 | CPU: None 28 | Linux64: 29 | enabled: 1 30 | settings: 31 | CPU: x86_64 32 | LinuxUniversal: 33 | enabled: 1 34 | settings: 35 | CPU: x86_64 36 | OSXIntel: 37 | enabled: 0 38 | settings: 39 | CPU: None 40 | OSXIntel64: 41 | enabled: 1 42 | settings: 43 | CPU: AnyCPU 44 | OSXUniversal: 45 | enabled: 0 46 | settings: 47 | CPU: x86_64 48 | Win: 49 | enabled: 0 50 | settings: 51 | CPU: None 52 | Win64: 53 | enabled: 1 54 | settings: 55 | CPU: AnyCPU 56 | userData: 57 | assetBundleName: 58 | assetBundleVariant: 59 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a71baa5fa92db2b48a8dfc186cf2d332 3 | folderAsset: yes 4 | timeCreated: 1480275668 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MengeCS.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/Assets/Scripts/MengeCS.dll -------------------------------------------------------------------------------- /Assets/Scripts/MengeCS.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b68e6cab1d2d9da4c9f111b61862fe92 3 | timeCreated: 1483937198 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 0 16 | settings: 17 | DefaultValueInitialized: true 18 | WindowsStoreApps: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Scripts/SimController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using MengeCS; 5 | using System; 6 | 7 | public class SimController : MonoBehaviour { 8 | 9 | public GameObject PedestrianModel; 10 | 11 | private MengeCS.Simulator _sim; 12 | private List _objects = new List(); 13 | private bool _sim_is_valid = false; 14 | 15 | private List classColors = new List () { 16 | Color.red, 17 | Color.blue, 18 | Color.green, 19 | Color.gray, 20 | Color.magenta 21 | }; 22 | 23 | // Use this for initialization 24 | void Start () { 25 | Debug.Log ("Starting simulation..."); 26 | 27 | string demo = "4square"; 28 | string mengeRoot = @"E:\work\projects\menge_fork\"; 29 | string behavior = String.Format(@"{0}examples\core\{1}\{1}B.xml", mengeRoot, demo); 30 | string scene = String.Format(@"{0}examples\core\{1}\{1}S.xml", mengeRoot, demo); 31 | Debug.Log ("\tInitialzing sim"); 32 | Debug.Log ("\t\tBehavior: " + behavior); 33 | Debug.Log ("\t\tScene: " + scene); 34 | 35 | _sim = new MengeCS.Simulator (); 36 | _sim_is_valid = _sim.Initialize (behavior, scene, "orca"); 37 | 38 | if (_sim_is_valid) 39 | { 40 | int COUNT = _sim.AgentCount; 41 | Debug.Log(string.Format("Simulator initialized with {0} agents", COUNT)); 42 | for (int i = 0; i < COUNT; ++i) 43 | { 44 | MengeCS.Agent a = _sim.GetAgent(i); 45 | UnityEngine.Vector3 pos = new UnityEngine.Vector3(a.Position.X, a.Position.Y, a.Position.Z); 46 | GameObject o = Instantiate(PedestrianModel, pos, Quaternion.identity) as GameObject; 47 | if (o != null) 48 | { 49 | o.transform.GetComponentInChildren().material.color = classColors[a.Class % classColors.Count]; 50 | o.transform.GetChild(0).gameObject.transform.localScale = new UnityEngine.Vector3(a.Radius * 2, 0.85f, a.Radius * 2); 51 | _objects.Add(o); 52 | } 53 | } 54 | } else 55 | { 56 | Debug.Log("Failed to initialize the simulator..."); 57 | } 58 | } 59 | 60 | // Update is called once per frame 61 | void Update () { 62 | if (_sim_is_valid) 63 | { 64 | _sim.DoStep(); 65 | UnityEngine.Vector3 newPos = new UnityEngine.Vector3(); 66 | for (int i = 0; i < _sim.AgentCount; ++i) 67 | { 68 | MengeCS.Vector3 pos3d = _sim.GetAgent(i).Position; 69 | newPos.Set(pos3d.X, pos3d.Y, pos3d.Z); 70 | _objects[i].transform.position = newPos; 71 | } 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /Assets/Scripts/SimController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a823dde5f373b964fbb8816c18ccfefc 3 | timeCreated: 1487312707 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: 8 | - PedestrianModel: {fileID: 1000011020583352, guid: 07a5f7178cf9f4d4cbf609967fff93fd, 9 | type: 2} 10 | - ObstacleMaterial: {fileID: 2100000, guid: a68bb54140ef0bb42b5590deec286930, type: 2} 11 | executionOrder: 0 12 | icon: {instanceID: 0} 13 | userData: 14 | assetBundleName: 15 | assetBundleVariant: 16 | -------------------------------------------------------------------------------- /Assets/_Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d7e3801456f0ee4ab1776a5b1f16d0e 3 | folderAsset: yes 4 | timeCreated: 1480275500 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/_Scenes/scene_01.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/Assets/_Scenes/scene_01.unity -------------------------------------------------------------------------------- /Assets/_Scenes/scene_01.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8824a590c4cb81b4fbd0f0c6fb409016 3 | timeCreated: 1480275500 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Menge Unity 2 | 3 | This project serves as an example for integrating the Menge crowd simulation framework with the 4 | Unity game engine. 5 | 6 | ## Running the Demo 7 | 8 | Make sure you have already cloned the [main Menge repository](https://github.com/MengeCrowdSim/Menge). 9 | This Unity project will reference simulation specifications in the examples directory. 10 | 11 | These instructions assume the 64-bit version of the Unity Editor. If you're using the 32-bit 12 | version, read the instructions below on 32/64-bit issues. 13 | 14 | 1. Clone this repository (or better yet, fork it so you can submit improvements back as a pull 15 | request). 16 | 2. Start the Unity Editor. 17 | 3. Open a new project and select the root directory of your clone as the containing folder. 18 | 4. The Unity 3D view should show four blocks. These are the obstacles for the 4square example in 19 | `$MengeRoot$\examples\core\4square`. 20 | ![Unity File Open](https://github.com/MengeCrowdSim/MengeUnity/blob/master/doc/images/4_blocks.PNG) 21 | 5. Open the `SimController` script for editing. 22 | 6. Edit line 27 so the `mengeRoot` variable points to the path on your system where the Menge 23 | source is located. Make sure that the path includes a final `\` character. 24 | 7. Save `SimController.cs` and return to the editor. 25 | 8. Hit the `play` button. 26 | ![Unity File Open](https://github.com/MengeCrowdSim/MengeUnity/blob/master/doc/images/4_blocks_sim.PNG) 27 | 28 | ## Dependencies for Making Changes 29 | 30 | The contents of this repository are sufficiently self-contained to run a demo (assuming you can 31 | provide scenario specification files). However, it may be necessary for you make modifications on 32 | what this simple example can do; changes that go beyond just Unity. The integration of Menge into 33 | Unity is based on two things: 34 | 35 | 1. Menge itself (specifically, the `MengeCore.dll`). [Clone from here](https://github.com/MengeCrowdSim/Menge) 36 | 2. Menge C-Sharp Wrapper. [Clone from here](https://github.com/MengeCrowdSim/MengeCS) 37 | 38 | Both of these projects will produce dlls for you to include in the Unity project. The `MengeCore.dll` 39 | produced by the Menge project should go in `$MengeUnity$\assets\Plugins` (see note below for details 40 | on 32/64-bit issues). The `MengeCS.dll` produced by the second project should go in the 41 | `$MengeUnity$\assets\Scripts` folder. 42 | 43 | ## 32/64-bit issues 44 | 45 | When using external dlls in Unity, it is important to make sure the dlls are built to the same 46 | build environment as the application. For a 32-bit application, you need 32-bit dlls. For a 64-bit 47 | application, you need a 64-bit dll. This _seems_ straightforward, but there is a wrinkle that might 48 | catch you. The Unity Editor is one of the applications you develop and, on modern machines, it is 49 | most likely a 64-bit application. So, even if your final application you're using Unity to produce 50 | is a 32-bit application, to develop it you'll need both a 64-bit and 32-bit version of the 51 | `MengeCore.dll`. 52 | 53 | If you look in the `Plugins` folder, you'll note there are _two_ subfolders containing, apparently 54 | identical files: `x86` and `x86_64` both contain copies of `MengeCore.dll`. As the directory names 55 | suggeset, they are not actually identical. The former is a 32-bit dll and the latter is a 64-bit 56 | dll. We provide both and then configure them _inside_ Unity so that it uses the right one in the 57 | right context. For this to work, they _must_ be named the same. 58 | 59 | If you make changes to Menge, you'll need to build Menge twice: one as 32-bit and one as 64-bit. 60 | In order for the magic to work, the files must have identical names. This can lead to confusion and 61 | requires care that the right build ends up in the right directory. If you end up putting the wrong 62 | dll in the wrong directory, it will become immediately apparent -- the dll will fail to load. 63 | 64 | ## Contributing 65 | 66 | Please feel free to contribute to this example. The first major step is to replace cylinders with 67 | interesting pedestrians. We would really appreciate it if those better versed in Unity than we are 68 | could help us flesh this out into a more fully-featured visualization of Menge simulations. 69 | -------------------------------------------------------------------------------- /ReleaseNotes.txt: -------------------------------------------------------------------------------- 1 | Release 2 | 3 | Features 4 | - Upgrade to v5.6 from v 5.4 5 | Bugs 6 | - Properly handle simulator initialization failure. No longer causes Unity to crash upon 7 | failure. Instead, it runs without agents. 8 | 9 | ---------------------------------------------------------------- 10 | Release 0.0.1 11 | February 20, 2017 12 | 13 | Initial release. 14 | -------------------------------------------------------------------------------- /doc/images/4_blocks.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/doc/images/4_blocks.PNG -------------------------------------------------------------------------------- /doc/images/4_blocks_sim.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MengeCrowdSim/MengeUnity/7d6ce23b4f729a29f12d9e31e99d5fa896eb7ea7/doc/images/4_blocks_sim.PNG --------------------------------------------------------------------------------