Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 978 Bytes

File metadata and controls

33 lines (22 loc) · 978 Bytes

newton-clips

Clips from newton-physics simulation to Unreal Engine 5 runtime

  • exchange the simulation data with NewtonClips, a twin UE5 plugin
  • replace viewers in newton-physics and convert simulation data
  • support newton-physics examples with the least code change

Install

pip install newton-clips

Getting started

  1. run newtonclips/example.py
  2. find generated simulation data in newtonclips.SAVE_DIR
  3. use this directory in NewtonClips

How to run newton.examples

import newtonclips  # replace newton viewers implicitly

newtonclips.SAVE_DIR = '.clips'  # set directory to save simulation data

# make sure you have installed the necessary external libraries
from newton.examples.basic import example_basic_shapes as example
import runpy

runpy.run_path(example.__file__, run_name='__main__')