All Projects â†’ EmbarkStudios â†’ Physx Rs

EmbarkStudios / Physx Rs

Licence: other
🎳 Rust binding and wrapper over NVIDIA PhysX 🦀

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Physx Rs

Ign Gazebo
Open source robotics simulator. Through Ignition Gazebo users have access to high fidelity physics, rendering, and sensor models. Additionally, users and developers have multiple points of entry to simulation including a graphical user interface, plugins, and asynchronous message passing and services. Ignition Gazebo is derived from Gazebo, and represents over 16 years of development and experience in robotics and simulation. This library is part of the Ignition Robotics project.
Stars: ✭ 81 (-73.87%)
Mutual labels:  hacktoberfest, physics
Pswritecolor
Write-Color is a wrapper around Write-Host allowing you to create nice looking scripts, with colorized output.
Stars: ✭ 78 (-74.84%)
Mutual labels:  wrapper, hacktoberfest
Pokedex Promise V2
An easy way to use pokeapi v2 with promises in node.js
Stars: ✭ 315 (+1.61%)
Mutual labels:  wrapper, hacktoberfest
Dynamicalsystems.jl
Award winning software library for nonlinear dynamics
Stars: ✭ 381 (+22.9%)
Mutual labels:  hacktoberfest, physics
Pokeapi Js Wrapper
PokeAPI browser wrapper, fully async with built-in cache
Stars: ✭ 129 (-58.39%)
Mutual labels:  wrapper, hacktoberfest
Chaostools.jl
Tools for the exploration of chaos and nonlinear dynamics
Stars: ✭ 77 (-75.16%)
Mutual labels:  hacktoberfest, physics
Canvasapi
Python API wrapper for Instructure's Canvas LMS. Easily manage courses, users, gradebooks, and more.
Stars: ✭ 306 (-1.29%)
Mutual labels:  wrapper, hacktoberfest
Gazebo
Open source robotics simulator.
Stars: ✭ 404 (+30.32%)
Mutual labels:  hacktoberfest, physics
Colore
A powerful C# library for Razer Chroma's SDK
Stars: ✭ 121 (-60.97%)
Mutual labels:  wrapper, hacktoberfest
Pokebase
Python 3 wrapper for Pokéapi v2
Stars: ✭ 99 (-68.06%)
Mutual labels:  wrapper, hacktoberfest
Limonengine
3D FPS game engine with full dynamic lighting and shadows
Stars: ✭ 331 (+6.77%)
Mutual labels:  hacktoberfest, physics
Vue Axios
A small wrapper for integrating axios to Vuejs
Stars: ✭ 1,887 (+508.71%)
Mutual labels:  wrapper, hacktoberfest
Imgui Go
Go wrapper library for "Dear ImGui" (https://github.com/ocornut/imgui)
Stars: ✭ 499 (+60.97%)
Mutual labels:  wrapper, hacktoberfest
Aiovk
vk.com API python wrapper for asyncio
Stars: ✭ 85 (-72.58%)
Mutual labels:  wrapper, hacktoberfest
Libfaketime
libfaketime modifies the system time for a single application
Stars: ✭ 1,932 (+523.23%)
Mutual labels:  wrapper, hacktoberfest
Glportal
🎮 Open Source teleportation based first person puzzle-platformer
Stars: ✭ 297 (-4.19%)
Mutual labels:  hacktoberfest, physics
Start here
This repo outlines how to get started contributing to Operation Code, each of our projects, the language they are written in, and their purpose.
Stars: ✭ 307 (-0.97%)
Mutual labels:  hacktoberfest
Coala
coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.
Stars: ✭ 3,280 (+958.06%)
Mutual labels:  hacktoberfest
Airbash
A POSIX-compliant, fully automated WPA PSK PMKID and handshake capture script aimed at penetration testing
Stars: ✭ 308 (-0.65%)
Mutual labels:  hacktoberfest
Wesbos
Stars: ✭ 308 (-0.65%)
Mutual labels:  hacktoberfest

🎳 physx-rs

Embark Embark Crates.io Docs dependency status Build status

Rust binding and wrapper over NVIDIA PhysX, a popular and mature physics engine particularly well-suited for games.

Created and maintained by Embark and not officially supported by NVIDIA.

This repository contains 2 crates:

Name Description Links
physx High-level interface on top of physx-sys 🚧 Crates.io Docs
physx-sys Unsafe bindings to the PhysX C++ API Crates.io Docs

Why use it?

  • You want a feature-rich and performant physics engine to use in your project.

Caveats

  • The high-level physx wrapper is work-in-progress, and only covers a part of PhysX functionality. You can follow our progress and see where contributions are needed in our Tracking Issue for High-Level API Completeness.

  • Any other features have to be accessed through the unsafe physx-sys crate.

  • It's a large C++ codebase which requires a C++ toolchain, and comes with a non-trivial build system.

Alternatives

  • Rapier: a 2D and 3D physics engine for games, animation, and robotics written in Rust. Fully cross-platform, with web support and optional cross-platform determinism on IEEE 754-2008 compliant systems.

  • nphysics: a 2- and 3-dimensional physics engine for games and animations written in Rust. It is a good option for projects which do not require the full feature set of PhysX or prefer a native Rust solution.

Presentation

Tomasz Stachowiak did a presentation at the Stockholm Rust Meetup on October 2019 about this project that goes through the tecnical details of how C++ to Rust bindings of physx-sys works:

Usage

The following code example shows how physx can be initialized.

const PX_PHYSICS_VERSION: u32 = physx::version(4, 1, 1);
let mut foundation = Foundation::new(PX_PHYSICS_VERSION);

let mut physics = PhysicsFoundation::default();

let mut scene = physics.create(
    SceneDescriptor {
        gravity: PxVec3::new(0.0, 0.0, -9.81),
        ..SceneDescriptor::new(MySceneUserData::default())
    }
);

You can run an example with cargo run --example ball, which should show the following output:

Example

Information about all wrapper functionality can be found in the physx crate docs.

If you require functionality not covered by the physx wrapper you can use the low level physx-sys crate, which closely maps to the official PhysX SDK. You can find the PhysX user guide here.

Prerequisites

How to build

git submodule update --init
cargo build --release

Windows Note

It is highly recommended to not enable debug info in release mode when building with MSVC, as the Physx C++ code will take an extremely long time to compile. You can disable this by putting the following in your Cargo.toml

[profile.release.package.physx-sys]
debug = false

How to release (maintainers only)

physx-rs consists of two crates, physx and physx-sys. If you only merged changes to one of them, only that one needs a new release.

  1. Look at physx/CHANGELOG.md and physx-sys/CHANGELOG.md to determine whether both or only one of the crate needs updating, and what semantic version bump we need

  2. Review the list of changes in the changelogs and compare with the git commit diffs to the previous release and make sure we've captured and described all changes well and that they are semantically correct

  3. Create a branch: git checkout -b release-physx-0.x.y

  4. Update relevant changelogs (also update the diff links at the bottom of them!), and the version number in the Cargo.toml files for the crate(s) that you are updating.

  5. Make a PR from your branch, get it reviewed and merged. If in doubt about what the PR should look like, just look at previous release PRs

  6. Run cargo publish in the physx and physx-sys directories as appropriate.

  7. Once published without errors, tag the merge with physx-v0.x.y and/or physx-sys-v0.z.w tags as appropriate:

    git tag physx-v0.x.y -m ""
    git tag physx-sys-v0.x.y -m ""
    git push --tags
    

Contributing

Contributor Covenant

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started.

License

Licensed under either of

at your option.

Note that the PhysX C++ SDK has its own BSD 3 license and depends on additional C++ third party libraries.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].