Algoryx Simulation AB 2016
Unity3D bindings for AGX Dynamics from Algoryx Simulation.
AGX Dynamics is a professional physics engine which deliver stable, robust and realistic dynamic simulations. AGX is being utilized in hundreds of training simulators and help engineers design and evaluate new mechanical systems in Dynamics for SpaceClaim.
With AGXUnity, it is possible to incorporate a real physics engine into a well known authoring environment for 3D real time content, Unity3D.
AGXUnity is still rather in a premature state. It give you a starting point for extending the scripting and gui capabilities to cover larger portion of the vast AGX Dynamics API. We really appreciate if you do git pull request to make this a better binding for everyone using it.
- AGXUnity allows you to utilize AGX Dynamics inside Unity3D.
- Currently it is built and tested with Visual Studio 2015 SP1 and Visual Studio 2017
- The latest version of AGXUnity requires 5.6.2
- AGXUnity is free, for more details see: LICENSE
Note: that AGXUnity is an interface/binding to AGX Dynamics, and access the dynamic simulation, requires a binary installation of AgX Dynamics including a valid license.
See Doc/DeveloperGuide.md for detailed information on how to install/develop and deploy AGXUnity.
For your convenience we have also some pre-built packages which might work. See the sub-directory prebuilt-packages for some sample packages:
Download from the prebuilt-packages sub-directory in the repository browser.
If you use the exact same AGX Dynamics version as well as a matching Unity3D version you might just be able to drag-drop this package into the assets of your project.
For some reason you need to run two times (and clear the console) before the NullReferenceException: Object reference not set to an instance of an object message disappears.
- However, we recommend that you check out the code and build from scratch.
Creating your first scene tutorial show you how to create a scene populated with simulated AGX objects.
On YouTube you can find a few video tutorials demonstrating the use of AGXUnity:
- Modelling with primitives
- Modelling with materials
- Modelling with constraints
- Modelling with triangle meshes
- Modelling with wires
If you get this error in the console:
It is because agxDotNet.dll cannot be located. Make sure you have it in your project\Assets\Plugins directory.
This problem occurs because AGX Dynamics binary files either need to be in the PATH (before starting Unity), or that no AGX Dynamics has been installed to the local computer. If AGX Dynamics is installed, an entry in the windows registry will point out where it has been installed. The NativeHandler.cs will pick this up.
We really appreciate feedback. If you have suggestions for improvements, just make a pull request. Together we can make this a great bridge between the awsome graphics of Unity3D and the world class dynamic simulation of AGX Dynamics.
For more information contact Algoryx Simulation: contact@algoryx.se