UnityMeshImporter

Unity does not support run-time mesh import from files outside of the project for performance. Fortunately, AssimpNet provides nice Unity plugin enables loading various formats of mesh objects.

I wrote a Unity package based on this: UnityMeshImporter. This package loads mesh file by AssimpNet and convert it to a Unity GameObject. The source code is available on GitHub.

It just works like this:

using UnityMeshImporter;

string meshFile = "YOUR-MESH-FILE-PATH";
var ob = MeshImporter.Load(meshFile); 

raisim-zerogravity-gif

Very simple!

You can find a simple example Unity app here. Please star the projects if you like it. Any comments or issue rerporting through GitHub issue is welcomed. This project is also used for RaiSimUnity project.




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Tuning Legged Locomotion Controllers via Safe Bayesian Optimization
  • RL + Model-based Control: Using On-demand Optimal Control to Learn Versatile Legged Locomotion
  • Animal Motions on Legged Robots Using Nonlinear Model Predictive Control
  • Nonlinear Model Predictive Control for Quadrupedal Locomotion Using Second-Order Sensitivity Analysis
  • Animal Gaits on Quadrupedal Robots Using Motion Matching and Model-Based Control