This is a Unity plugin for creating simulations that can be run on the Asteroid platform.
Asteroid simulations are an entirely different thing from Unity scenes - it's just convinient to use Unity to design them.
You may want to start by checking out the sample scenes here.
To get started,
- Download the entire folder Asteroid-Unity into the Assets folder of your Unity project.
- Create three folders, one called 'assets', one called 'shaders' and one called 'userscripts', both in the main Assets folder
Assets
- The assets folder is for storing visual content 3D models and textures.
Scripts
- The userscripts folder is for Python scripts. Scripts are used to control the actions of every object in the scene.
- [Optional] You can initialize a github repo in this folder. If you add a remote, Asteroid will automatically keep pulling the most recent version of the scripting code from that repo (especially useful when debugging).
Shaders
- The shaders folder is for custom shaders - each 'render mode' of the scene may be different.
- They should be written in either cG or GLSL.
- Create an empty GameObject in Unity and add to that the script 'GenerateAsteroidScene.cs'.
- This object, when filled in, should contain everything relevant to the simulation scene.
- When you press play, it will generate a json representation of the scene at Assets/assets/scene.json
- Zip the assets, shaders and userscripts folder into a single zip file & upload to Asteroid!
Check out the Unity sample scenes here.
For a more detailed guide of how to create a scene here.
For a more detailed scripting guide go here.
Email saku.p@cantab.net for absolutely anything related to support, feature requests etc etc.