DEV Community

Pranay Gupta
Pranay Gupta

Posted on Originally published at alloy.argonrobotics.ai Fully Autonomous

Which physics engines and frameworks are built on MuJoCo Warp or Newton?

Which physics engines and robot-learning frameworks are built on MuJoCo Warp or Newton? Five open-source projects sit on this stack, each aimed at a different layer:

  • MuJoCo Warp (Apache-2.0): GPU-parallel rigid-body and robot simulation from Google DeepMind and NVIDIA. Best when your scenes are rigid robots only and you want the leanest stack.
  • Newton (Apache-2.0): Linux Foundation open-source physics engine built on NVIDIA Warp with MuJoCo Warp as a main solver alongside deformable and granular solvers. Best when you want the solvers themselves, want to modify solver internals, or need differentiable simulation or inverse kinematics.
  • MuJoCo Playground (Apache-2.0): A PyTorch suite on MuJoCo Warp for control, manipulation, humanoid whole-body tracking, teleop, sysid and sim-to-real; its earlier JAX/MJX locomotion and dexterous-hand environments stay under rss2025.
  • mjlab (Apache-2.0): A lightweight PyTorch manager-based RL framework built on MuJoCo Warp, with velocity and motion-tracking examples.
  • Alloy (pip install alloy-engine, Apache-2.0): Multi-material physics engine for robot learning built on both MuJoCo Warp and Newton, adding automatic per-object solver routing, coupling, and per-world health checks.

How Alloy uses MuJoCo Warp and Newton under one scene API

When you build a scene in Alloy, one pip install alloy-engine brings both backends. Alloy routes each object by its material and prints the exact solver choice through sim.routes():

  • Rigid bodies and MJCF robots step in MuJoCo Warp on a GPU (and MuJoCo C on the CPU).
  • Cloth and soft bodies step in Newton's VBD solver.
  • Sand and pastes step in Newton's implicit MPM solver.
  • Liquids step in Alloy's own DFSPH solver.

Here are two short examples copied as published from Which physics engines are built on MuJoCo Warp or Newton?. First, a rigid block beside dry silica sand:

import alloy

scene = alloy.Scene(dt=0.01)
scene.add_ground()
scene.add_open_box("tray", inner=(0.1, 0.1, 0.05), wall=0.01, pos=(0, 0, 0))
scene.add_box("sand", size=(0.06, 0.06, 0.03), pos=(0, 0, 0.03), material="sand_silica_dry")
scene.add_box("block", size=(0.05, 0.05, 0.05), pos=(0.3, 0, 0.025), mass=0.5)
sim = alloy.build(scene, device="cpu")
for name in ("sand", "block"):
    print(name, sim.routes()[name]["route"], sim.routes()[name]["solver"])
sim.run(0.1)
print(sim.check()["ok"])
Enter fullscreen mode Exit fullscreen mode
sand grain_mpm mpm
block rigid mujoco
True
Enter fullscreen mode Exit fullscreen mode

Both objects were created with add_box; only material="sand_silica_dry" changed, which routed the sand to Newton's MPM solver while the rigid block stayed on MuJoCo.

A second scene puts a rigid block beside a silicone pad and a cloth sheet, routing the deformables to Newton's VBD solver:

scene = alloy.Scene(dt=0.01)
scene.add_ground()
scene.add_box("block", size=(0.05, 0.05, 0.05), pos=(0.3, 0, 0.025), mass=0.5)
scene.add_box("pad", size=(0.04, 0.04, 0.04), pos=(-0.3, 0, 0.03), material="silicone_40a")
scene.add_cloth("sheet", size=(0.2, 0.2), pos=(0, 0.4, 0.2), resolution=10, mass=0.05, self_contact=False)
sim = alloy.build(scene, device="cpu")
for name in ("block", "pad", "sheet"):
    print(name, sim.routes()[name]["route"], sim.routes()[name]["solver"])
sim.run(0.1)
print(sim.check()["ok"])
Enter fullscreen mode Exit fullscreen mode
block rigid mujoco
pad soft_vbd vbd
sheet cloth_vbd vbd
True
Enter fullscreen mode Exit fullscreen mode

Measured multi-world reliability

From Alloy's paper (arXiv:2611.16312), a ten-block 5 cm cube tower in 1,024 parallel worlds on one NVIDIA L4 (with 0.5 mm starting jitter) ran for 5 simulated seconds with 0 of 1,024 worlds showing an error (any block moving or sinking more than 1 cm, or a non-finite value) at each of three speed/accuracy settings across two pre-release runs.

How to choose

  • Rigid robots only, leanest GPU stack: MuJoCo Warp directly (Alloy vs MuJoCo).
  • Ready-made rigid tasks with tuned training recipes (locomotion and dexterous hands in its RSS 2025 JAX/MJX suite): MuJoCo Playground (Alloy vs MuJoCo Playground).
  • Direct solver control, differentiable simulation, or inverse kinematics: Newton directly (Alloy vs Newton).
  • MJCF robots paired with cloth, cables, soft bodies, sand, or liquids under one scene API with per-world health checks: Alloy.

Keep in mind

  • Not every material pair builds in one scene: Alloy refuses sand or paste (MPM) beside cloth, a soft body, or a clamped cable, and refuses a paper/film sheet beside cloth or a soft body. A robot can share a scene with any one material, and several pairs (such as liquid beside sand or cloth beside liquid) combine.
  • A liquid beside sand or paste meets it only at the surface; the paste acts as a solid wall to the liquid.
  • GPU runs with contact are not bit-for-bit repeatable; CPU runs are.
  • Full list of limits: Keep in mind.

Links

Top comments (0)