rubullet 0.1.0-alpha-3

Rust interface to the Bullet Physics SDK simmilar to PyBullet
Documentation
1
2
3
4
5
6
7
8
9
10
11
use anyhow::Result;
use rubullet::*;
use std::time::Duration;

fn main() -> Result<()> {
    let mut physics_server = PhysicsServer::new(ServerMode::Graphics { tcp_port: None })?;
    while physics_server.is_connected() {
        std::thread::sleep(Duration::from_secs_f64(1. / 240.));
    }
    Ok(())
}