Rust bindings for LiquidFun.
Switch branches/tags
Nothing to show
Clone or download
rjanicek 0.8.0
* added joints
* added misc bindings
Latest commit 4ab0184 Dec 29, 2015
Failed to load latest commit information.
liquidfun-c 0.8.0 Dec 29, 2015
liquidfun-cpp initial commit Nov 15, 2015
src 0.8.0 Dec 29, 2015
tests 0.8.0 Dec 29, 2015
.gitignore initial commit Nov 15, 2015
Cargo.toml 0.8.0 Dec 29, 2015
LICENSE Initial commit Nov 15, 2015 * added chain shapes Dec 22, 2015

LiquidFun Rust

Rust bindings for LiquidFun.

  • Model LiquidFun C++ API as closely as possible in idiomatic Rust.
  • Documentation for C++ API should be usable for Rust API.
  • Document places where Rust API varries from C++ API.


LiquidFun Programmer's Guide

LiquidFun C++ API Documentation

Cargo Crate


First, add the following to your Cargo.toml:

liquidfun = "*"

Next, add this to your crate root:

extern crate liquidfun;


extern crate liquidfun;

use liquidfun::box2d::common::math::*;
use liquidfun::box2d::dynamics::world::*;

fn hello_world() {

	// Define the gravity vector.
	let gravity = Vec2::new(0.0, -10.0);

	// Construct a world object, which will hold and simulate the rigid bodies.
	let mut world = World::new(&gravity);
	assert_eq!(gravity, world.get_gravity());



The LiquidFun Hello World example compiles and runs. More bindings will be added as needed by projects that depend on LiquidFun Rust.

Thank You

Erin Catto for Box2D

Google for LiquidFun

Nicolas Silva for