Mesh/Terrain deformation tools for OpenConstructionSim.
Clone this repo into your unity project.
cd [YourProjects]/Assets/~
git clone https://github.com/Field-Robotics-Japan/OcsTerrain.git
- Create your construction site using Terrain.
- Attach TerrainManager.cs to the Terrain you have created.
- Enter the parameters.
- Add an empty child object to the excavation bucket.
- Attach ExcavateLine.cs to the object.
- Enter the parameters.
- Adjust the position of the object to the tip of the bucket. (Where the ExcavateLine can collide with the Terrain)
If the terrain and bucket collide, they will not work properly, so use the layer settings to prevent them from colliding with each other.
※Do not release the collision of soil particles.