#bindings #physics #physics-engine #2d #chipmunk #chipmunk2-d

sys chipmunk-rs

Rust bindings to the Chipmunk2D physics engine

2 releases

Uses old Rust 2015

0.1.1 Jan 29, 2017
0.1.0 Jan 21, 2017

#41 in #physics-engine

Custom license

2MB
19K SLoC

C 11K SLoC // 0.2% comments Objective-C 3K SLoC // 0.1% comments JavaScript 2.5K SLoC // 0.0% comments Visual Studio Project 1.5K SLoC Rust 455 SLoC // 0.1% comments Visual Studio Solution 138 SLoC Ruby 20 SLoC

Contains (static library, 565KB) glew32.lib, (static library, 95KB) chipmunk/msvc/glfw/lib-msvc100/GLFW.lib, (static library, 16KB) GLFWDLL.lib

ChipmunkRs

Build Status

Rust bindings to the Chipmunk2D physics engine.


lib.rs:

Bindings to the Chipmunk2D physics library

Tested on Chipmunk2D 7.0.1

These bindings provide a memory safety, but otherwise attempts to stay close to the original API. See the official Chipmunk2D 7.0.1 manual for details on how to use the API. These bindings are not zero-cost. Some overhead is due to memory safety related code. This cost may be reduced in future releases. Alternativelly, the ffi module provides raw API bindings (use at your own risk).

What's not done yet?

  • Shapes other than the Circle and Box (Poly) Shapes.
  • Iterators/callbacks.
  • Functions to get associated bodies/shapes/spaces from eachother. A clean and safe way of doing this in rust is needed.
  • This! Have a thurough run through the Chipmunk2D 7.0.1 manual and note missing functionality.

Dependencies