| Crates.io | rl_ball_sym |
| lib.rs | rl_ball_sym |
| version | 5.0.0 |
| created_at | 2021-06-26 16:03:29.626425+00 |
| updated_at | 2025-04-19 19:49:23.271581+00 |
| description | rl_ball_sym is a Rust implementation of Rocket League's ball physics |
| homepage | |
| repository | https://github.com/VirxEC/rl_ball_sym |
| max_upload_size | |
| id | 415193 |
| size | 571,362 |
Rust implementation of Rocket League's ball physics; Inspired by Samuel P. Mish's C++ utils called RLUtilities with accuracy improvements from RocketSim and other miscellaneous performance improvements.
Make sure you have Rust/Cargo installed, then just run cargo test --release in the terminal.
Check out the examples folder! If you want to run them and don't know how:
cargo run --example example_name
For example, to run the example basic.rs:
cargo run --example basic
Numbers are from a system running Ubuntu 23.10 with a Ryzen 9 5900X and 3600MHz CL18 RAM.
Numbers will vary depending on your system. Only default features are enabled.
load_standard: Loads 8028 triangles, executes in around 655µsload_hoops: Loads 15732 triangles, executes in around 1.35msload_dropshot: Loads 3616 triangles, executes in around 300µsload_standard_throwback: Loads 9272 triangles, executes in around 815µsget_ball_prediction_struct_for_time: standard + 8 seconds, executes in around 180µsget_ball_prediction: standard + 6 seconds, executes in around 145µsget_ball_prediction: Hoops + 6 seconds, executes in around 140µsget_ball_prediction: Dropshot + 6 seconds, executes in around 115µsget_ball_prediction: standard + Throwback Stadium + 6 seconds, executes in around 145µsstandard: Enable loading the standard maphoops: Enable loading the hoops mapdropshot: Enable loading the dropshot mapthrowback: Enable loading the throwback map (with standard game rules)compression: Minimize the size of the produced binaries by compressing the binary field data at compile time. Will slightly slow down load_x() functions.