f976d6d228
std::function can have an allocation cost when it's created, and also adds overhead to function calls. Since this API must be used from C, using a raw function pointer is good enough. PiperOrigin-RevId: 562760324 Change-Id: I2b714a13e07a2b71566d013f21f76c506e817a52
Unity Plug-in
The MuJoCo Unity plug-in allows the Unity Editor and runtime to use the MuJoCo physics engine. Users can import MJCF files and edit the models in the Editor. The plug-in relies on Unity for most aspects -- assets, game logic, simulation time -- but uses MuJoCo to determine how objects move, giving the designer access to MuJoCo's full API. See documentation and installation instructions here.