Work in progress
Things claimed in this README may not be implemented yet.
Newton-Dynamics safe wrapper for Rust.
- Newton-Dynamics version: 3.13a
- Install build dependencies
rust
(install using rustup)cmake
libclang-dev
libsdl2-dev
optional (testbed feature)
apt install cmake
apt install libclang-dev
apt install libsdl2-dev # optional
- Add dependency to your
Cargo.toml
[dependencies]
newton = { git = "https://github.com/germangb/newton-rs.git" }
The wrapper gives coverage to a subset of the C API (see #1).
- Most Body functions
- Most Collision functions (except mesh)
- Ray casting & convex casting
- Constraints (joints)
- Meshes (More or less)
- Main callbacks
- Materials
- Inverse kinematics
The newton testbed is a framework to run and inspect physics simulation.
Right now it is available under a feature flag, but eventually it will be moved into its own crate.
# Clone repository with submodules.
git clone --recursive https://github.com/germangb/newton-rs.git
# Change into the directory.
cd newton-rs
# Run one of the examples under the "examples/<name>.rs" directory.
# (the "testbed" feature has to be enabled).
cargo run --features testbed --example "<name>"