← Open Source
newton-physics

newton

An open-source, GPU-accelerated physics simulation engine built upon NVIDIA Warp, specifically targeting roboticists and simulation researchers.

Model DevelopmentEnvironmentsPython
Open on GitHub
Momentum
+5stars in 24 hours+0.1%
5.72k
Stars
710
Forks
+25
This week
100
Contributors
Created 2025-04-22 · Updated 2026-10-05 · #1469 today
Top developers
README

License GitHub commit activity Downloads codecov Push - AWS GPU

Newton

Newton is a GPU-accelerated physics simulation engine built upon NVIDIA Warp, specifically targeting roboticists and simulation researchers.

Newton extends and generalizes Warp's (deprecated) warp.sim module, and integrates MuJoCo Warp as its primary backend. Newton emphasizes GPU-based computation, OpenUSD support, differentiability, and user-defined extensibility, facilitating rapid iteration and scalable robotics simulation.

Newton is a Linux Foundation project that is community-built and maintained. Code is licensed under Apache-2.0. Documentation is licensed under CC-BY-4.0. Additional and third-party license texts are available in newton/licenses.

Newton was initiated by Disney Research, Google DeepMind, and NVIDIA.

Requirements

  • Python 3.10+
  • OS: Linux (x86-64, aarch64), Windows (x86-64), or macOS (CPU only)
  • GPU: NVIDIA GPU (Maxwell or newer), driver 545 or newer (CUDA 12). No local CUDA Toolkit installation required. macOS runs on CPU.

For detailed system requirements, see the installation guide. For tested configurations and Newton's versioning and deprecation policies, see the compatibility guide.

Quickstart

pip install "newton[examples]"
python -m newton.examples

To install from source with uv, see the installation guide.

Examples

Before running the examples below, install Newton with the examples extra:

pip install "newton[examples]"

If you run the examples from a source checkout with uv, use uv run --extra examples -m newton.examples instead of the python -m newton.examples commands below.

Basic Examples

  [![Pendulum](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_pendulum.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_pendulum.py)




  [![URDF](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_urdf.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_urdf.py)




  [![Viewer](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_viewer.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_viewer.py)








  python -m newton.examples basic_pendulum




  python -m newton.examples basic_urdf




  python -m newton.examples basic_viewer








  [![Shapes](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_shapes.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_shapes.py)




  [![Joints](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_joints.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_joints.py)




  [![Conveyor](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_conveyor.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_conveyor.py)








  python -m newton.examples basic_shapes




  python -m newton.examples basic_joints




  python -m newton.examples basic_conveyor








  [![Heightfield](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_heightfield.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_heightfield.py)




  [![Recording](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_recording.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_recording.py)




  [![Replay Viewer](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_replay_viewer.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_replay_viewer.py)








  python -m newton.examples basic_heightfield




  python -m newton.examples recording




  python -m newton.examples replay_viewer








  [![Plotting](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_plotting.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_plotting.py)




  [![Dzhanibekov](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_dzhanibekov.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_dzhanibekov.py)




  [![Conveyor Forces](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_conveyor_forces.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_conveyor_forces.py)








  python -m newton.examples basic_plotting




  python -m newton.examples basic_dzhanibekov




  python -m newton.examples basic_conveyor_forces








  [![Mimic Joint](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_basic_mimic_joint.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/basic/example_basic_mimic_joint.py)














  python -m newton.examples basic_mimic_joint

Robot Examples

  [![Cartpole](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_cartpole.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_cartpole.py)




  [![G1](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_g1.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_g1.py)




  [![H1](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_h1.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_h1.py)








  python -m newton.examples robot_cartpole




  python -m newton.examples robot_g1




  python -m newton.examples robot_h1








  [![Anymal D](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_anymal_d.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_anymal_d.py)




  [![Anymal C Walk](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_anymal_c_walk.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_anymal_c_walk.py)




  [![Policy](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_policy.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_policy.py)








  python -m newton.examples robot_anymal_d




  python -m newton.examples robot_anymal_c_walk




  python -m newton.examples robot_policy








  [![UR10](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_ur10.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_ur10.py)




  [![Panda Hydro](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_panda_hydro.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_panda_hydro.py)




  [![Allegro Hand](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_allegro_hand.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_allegro_hand.py)








  python -m newton.examples robot_ur10




  python -m newton.examples robot_panda_hydro




  python -m newton.examples robot_allegro_hand








  [![Omniwheel](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_omniwheel.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_omniwheel.py)




  [![asRoBallet](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_robot_asroballet.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/robot/example_robot_asroballet.py)








  python -m newton.examples robot_omniwheel




  python -m newton.examples robot_asroballet

Controller Examples

  [![Joint Impedance Heterogeneous](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_controller_joint_impedance_heterogeneous.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/controllers/example_controller_joint_impedance_heterogeneous.py)




  [![Operational Space Hybrid Force/Motion](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_controller_operational_space_hybrid_force_motion.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/controllers/example_controller_operational_space_hybrid_force_motion.py)




  [![Differential IK](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_controller_differential_ik.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/controllers/example_controller_differential_ik.py)








  python -m newton.examples controller_joint_impedance_heterogeneous




  python -m newton.examples controller_operational_space_hybrid_force_motion




  python -m newton.examples controller_differential_ik

Cable Examples

  [![Cable Twist](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cable_twist.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cable/example_cable_twist.py)




  [![Cable Y-Junction](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cable_y_junction.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cable/example_cable_y_junction.py)




  [![Cable Bundle Hysteresis](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cable_bundle_hysteresis.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cable/example_cable_bundle_hysteresis.py)








  python -m newton.examples cable_twist




  python -m newton.examples cable_y_junction




  python -m newton.examples cable_bundle_hysteresis








  [![Cable Pile](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cable_pile.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cable/example_cable_pile.py)




  [![Cable Cross Slide Table](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cable_cross_slide_table.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cable/example_cable_cross_slide_table.py)




  [![Cable Plectoneme](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cable_plectoneme.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cable/example_cable_plectoneme.py)








  python -m newton.examples cable_pile




  python -m newton.examples cable_cross_slide_table




  python -m newton.examples cable_plectoneme

Cloth Examples

  [![Cloth Bending](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_bending.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_bending.py)




  [![Cloth Hanging](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_hanging.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_hanging.py)




  [![Cloth Style3D](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_style3d.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_style3d.py)








  python -m newton.examples cloth_bending




  python -m newton.examples cloth_hanging




  python -m newton.examples cloth_style3d








  [![Cloth H1](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_h1.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_h1.py)




  [![Cloth Twist](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_twist.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_twist.py)




  [![Cloth Franka](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_franka.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_franka.py)








  python -m newton.examples cloth_h1




  python -m newton.examples cloth_twist




  python -m newton.examples cloth_franka








  [![Cloth Rollers](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_rollers.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_rollers.py)




  [![Cloth Poker Cards](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_cloth_poker_cards.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/cloth/example_cloth_poker_cards.py)












  python -m newton.examples cloth_rollers




  python -m newton.examples cloth_poker_cards

Inverse Kinematics Examples

  [![IK Franka](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_ik_franka.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/ik/example_ik_franka.py)




  [![IK H1](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_ik_h1.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/ik/example_ik_h1.py)




  [![IK Custom](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_ik_custom.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/ik/example_ik_custom.py)








  python -m newton.examples ik_franka




  python -m newton.examples ik_h1




  python -m newton.examples ik_custom








  [![IK Cube Stacking](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_ik_cube_stacking.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/ik/example_ik_cube_stacking.py)
















  python -m newton.examples ik_cube_stacking

MPM Examples

  [![MPM Granular](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_granular.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_granular.py)




  [![MPM Anymal](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_anymal.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_anymal.py)




  [![MPM Two-Way Coupling](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_twoway_coupling.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_twoway_coupling.py)








  python -m newton.examples mpm_granular  

  python -m newton.examples mpm_granular --from-usd




  python -m newton.examples mpm_anymal




  python -m newton.examples mpm_twoway_coupling








  [![MPM Grain Rendering](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_grain_rendering.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_grain_rendering.py)




  [![MPM Multi Material](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_multi_material.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_multi_material.py)




  [![MPM Viscous](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_viscous.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_viscous.py)








  python -m newton.examples mpm_grain_rendering




  python -m newton.examples mpm_multi_material




  python -m newton.examples mpm_viscous








  [![MPM Beam Twist](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_beam_twist.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_beam_twist.py)




  [![MPM Snow Ball](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_snow_ball.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_snow_ball.py)




  [![MPM Water Dam Break](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mpm_water_dam_break.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/mpm/example_mpm_water_dam_break.py)








  python -m newton.examples mpm_beam_twist




  python -m newton.examples mpm_snow_ball




  python -m newton.examples mpm_water_dam_break

Sensor Examples

  [![Sensor Contact](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_sensor_contact.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/sensors/example_sensor_contact.py)




  [![Sensor Camera](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_sensor_camera.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/sensors/example_sensor_camera.py)




  [![Sensor IMU](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_sensor_imu.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/sensors/example_sensor_imu.py)








  python -m newton.examples sensor_contact




  python -m newton.examples sensor_camera




  python -m newton.examples sensor_imu

Selection Examples

  [![Selection Cartpole](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_selection_cartpole.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/selection/example_selection_cartpole.py)




  [![Selection Materials](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_selection_materials.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/selection/example_selection_materials.py)




  [![Selection Articulations](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_selection_articulations.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/selection/example_selection_articulations.py)








  python -m newton.examples selection_cartpole




  python -m newton.examples selection_materials




  python -m newton.examples selection_articulations








  [![Selection Multiple](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_selection_multiple.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/selection/example_selection_multiple.py)
















  python -m newton.examples selection_multiple

DiffSim Examples

  [![DiffSim Ball](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_diffsim_ball.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/diffsim/example_diffsim_ball.py)




  [![DiffSim Cloth](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_diffsim_cloth.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/diffsim/example_diffsim_cloth.py)




  [![DiffSim Drone](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_diffsim_drone.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/diffsim/example_diffsim_drone.py)








  python -m newton.examples diffsim_ball




  python -m newton.examples diffsim_cloth




  python -m newton.examples diffsim_drone








  [![DiffSim Spring Cage](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_diffsim_spring_cage.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/diffsim/example_diffsim_spring_cage.py)




  [![DiffSim Soft Body](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_diffsim_soft_body.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/diffsim/example_diffsim_soft_body.py)




  [![DiffSim Quadruped](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_diffsim_bear.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/diffsim/example_diffsim_bear.py)








  python -m newton.examples diffsim_spring_cage




  python -m newton.examples diffsim_soft_body




  python -m newton.examples diffsim_bear

Multi-Physics Examples

  [![Softbody Gift](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_softbody_gift.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/multiphysics/example_softbody_gift.py)




  [![Softbody Dropping to Cloth](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_softbody_dropping_to_cloth.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/multiphysics/example_softbody_dropping_to_cloth.py)




  [![Rigid Soft Contact](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_rigid_soft_contact.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/multiphysics/example_rigid_soft_contact.py)








  python -m newton.examples softbody_gift




  python -m newton.examples softbody_dropping_to_cloth




  python -m newton.examples rigid_soft_contact








  [![Franka Cable IK Pick and Place](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_franka_cable_ik_pick_place.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/multiphysics/example_franka_cable_ik_pick_place.py)




  [![MuJoCo Franka VBD Cable ADMM](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_mujoco_franka_vbd_cable_admm_solver.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/multiphysics/example_mujoco_franka_vbd_cable_admm_solver.py)




  [![VBD DAT Rigid Soft](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_vbd_dat_rigid_soft.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/multiphysics/example_vbd_dat_rigid_soft.py)








  python -m newton.examples franka_cable_ik_pick_place




  python -m newton.examples mujoco_franka_vbd_cable_admm_solver




  python -m newton.examples vbd_dat_rigid_soft

Contacts Examples

  [![Nut Bolt Hydro](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_nut_bolt_hydro.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_nut_bolt_hydro.py)




  [![Nut Bolt SDF](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_nut_bolt_sdf.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_nut_bolt_sdf.py)




  [![Brick Stacking](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_brick_stacking.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_brick_stacking.py)








  python -m newton.examples nut_bolt_hydro




  python -m newton.examples nut_bolt_sdf




  python -m newton.examples brick_stacking








  [![Pyramid](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_pyramid.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_pyramid.py)




  [![RJ45 Plug](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_contacts_rj45_plug.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_contacts_rj45_plug.py)




  [![Newton Cradle](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_newton_cradle.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_newton_cradle.py)








  python -m newton.examples pyramid




  python -m newton.examples contacts_rj45_plug




  python -m newton.examples newton_cradle








  [![Balance Bird](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_balance_bird.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_balance_bird.py)




  [![Domino Spiral](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_domino_spiral.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/contacts/example_domino_spiral.py)












  python -m newton.examples balance_bird




  python -m newton.examples domino_spiral

Softbody Examples

  [![Softbody Hanging](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_softbody_hanging.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/softbody/example_softbody_hanging.py)




  [![Softbody Franka](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_softbody_franka.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/softbody/example_softbody_franka.py)












  python -m newton.examples softbody_hanging




  python -m newton.examples softbody_franka

Kamino Examples

  [![Kamino DR Testmech](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_kamino_basic_dr_testmech.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/kamino/example_kamino_basic_dr_testmech.py)




  [![Kamino Fourbar](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_kamino_basic_fourbar.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/kamino/example_kamino_basic_fourbar.py)




  [![Kamino Heterogeneous](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_kamino_basic_heterogeneous.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/kamino/example_kamino_basic_heterogeneous.py)








  python -m newton.examples kamino_basic_dr_testmech




  python -m newton.examples kamino_basic_fourbar




  python -m newton.examples kamino_basic_heterogeneous








  [![Kamino Anymal D](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_kamino_robot_anymal_d.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/kamino/example_kamino_robot_anymal_d.py)




  [![Kamino DR Legs](https://raw.githubusercontent.com/newton-physics/newton/main/docs/images/examples/example_kamino_robot_dr_legs.jpg)](https://github.com/newton-physics/newton/blob/main/newton/examples/kamino/example_kamino_robot_dr_legs.py)












  python -m newton.examples kamino_robot_anymal_d




  python -m newton.examples kamino_robot_dr_legs

Example Options

All examples share a common set of command-line options. The most commonly used ones are:

Argument Description Default
--viewer Viewer to use: gl, usd, rtx, rerun, viser, or null. gl
--device Compute device to use, e.g., cpu, cuda:0. None (default Warp device)
--num-frames Total number of frames to simulate. 100
--output-path Path to the output USD file (used by the usd viewer). output.usd

For the complete, always-current list of options — plus any arguments a specific example adds — run:

python -m newton.examples  --help

Example Usage

# List available examples
python -m newton.examples --list

# Run with the USD viewer and save to my_output.usd
python -m newton.examples basic_viewer --viewer usd --output-path my_output.usd

# Run on a selected device
python -m newton.examples basic_urdf --device cuda:0

# Combine options
python -m newton.examples basic_viewer --viewer gl --num-frames 500 --device cpu

Contributing and Development

See CONTRIBUTING.md for ways to contribute and the pull-request process. The governance contribution guidelines cover legal requirements, project roles, and approval authority. Use the development guide for environment setup and development workflows. Code and public API changes must follow the source code guidelines; reviewers may use the suggested review guidelines.

Support and Community Discussion

For questions, please consult the Newton documentation first before creating a discussion in the main repository.

Code of Conduct

By participating in this community, you agree to abide by the Linux Foundation Code of Conduct.

Project Governance, Legal, and Members

Please see the newton-governance repository for more information about project governance.