Skip to content

Commit

Permalink
Update to Glam 0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed Sep 5, 2024
1 parent a9179cb commit e223d1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rl_ball_sym"
version = "4.1.2"
version = "4.2.0"
authors = ["VirxEC"]
edition = "2021"
description = "rl_ball_sym is a Rust implementation of Rocket League's ball physics"
Expand All @@ -21,15 +21,14 @@ all = "warn"

[dev-dependencies]
rand = "0.8"
once_cell = "1.17.1"
criterion = { version = "0.5.0", features = ["html_reports"] }
serde_json = "1.0.107"
colored = "2.0.4"
rocketsim_rs = { version = "0.32.0", features = ["glam"] }
rocketsim_rs = { version = "0.33.0", features = ["glam"] }

[dependencies]
byteorder = "1"
glam = "0.28.0"
glam = "0.29.0"
radsort = "0.1"
combo_vec = { version = "0.7.1", default-features = false }
include-flate = { version = "0.3.0", optional = true }
Expand Down
8 changes: 3 additions & 5 deletions examples/basic.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
use once_cell::sync::Lazy;
use rand::Rng;
use rl_ball_sym::{load_standard, Ball, Game, Predictions, Vec3A};
use std::sync::RwLock;
use std::sync::{LazyLock, RwLock};

// We only need to initialize everything once,
// and OnceCell's Lazy type is perfect for this
static GAME: RwLock<Lazy<(Game, Ball)>> = RwLock::new(Lazy::new(load_standard));
// We only need to initialize everything once
static GAME: RwLock<LazyLock<(Game, Ball)>> = RwLock::new(LazyLock::new(load_standard));

fn main() {
let mut rng = rand::thread_rng();
Expand Down

0 comments on commit e223d1b

Please sign in to comment.