Skip to content

Commit f7b427e

Browse files
committed
bump bevy
1 parent 66e7ff5 commit f7b427e

File tree

5 files changed

+19
-26
lines changed

5 files changed

+19
-26
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bevy_mujoco"
3-
version = "0.16.0"
3+
version = "0.17.0"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
resolver = "2"
@@ -11,12 +11,12 @@ repository = "https://github.com/stillonearth/bevy_mujoco"
1111
[dependencies]
1212
mujoco-rust = { git = "https://github.com/stillonearth/MuJoCo-Rust.git", rev = "27d4500" }
1313
arrayvec = "0.7.2"
14-
bevy = "0.16"
14+
bevy = "0.17"
1515
trees = "0.4.1"
1616
serde = { version = "1", features = ["derive"] }
1717
itertools = "0.13"
18-
nalgebra = "0.33"
18+
nalgebra = "0.33.1"
1919

2020
[dev-dependencies]
2121
rand = "0.8.5"
22-
bevy_flycam = "0.15.0"
22+
bevy_flycam = { git = "https://github.com/Nonoreve/bevy_flycam.git", rev = "3842060" }

examples/unitree_a1_walk.rs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,19 @@ use bevy_mujoco::*;
77
use rand::Rng;
88

99
fn setup(mut commands: Commands) {
10-
commands.spawn(PointLightBundle {
11-
point_light: PointLight {
12-
intensity: 9000.0,
13-
range: 100.,
14-
shadows_enabled: false,
10+
commands.spawn((
11+
PointLight {
12+
shadows_enabled: true,
1513
..default()
1614
},
17-
transform: Transform::from_xyz(8.0, 16.0, 8.0),
18-
..default()
19-
});
15+
Transform::from_xyz(4.0, 8.0, 4.0),
16+
));
2017

21-
commands
22-
.spawn(Camera3dBundle {
23-
transform: Transform::from_xyz(0.0, 2.0, 2.0).looking_at(Vec3::ZERO, Vec3::Y),
24-
..default()
25-
})
26-
.insert(FlyCam);
18+
commands.spawn((
19+
Camera3d::default(),
20+
Transform::from_xyz(0.0, 2.0, 2.0).looking_at(Vec3::ZERO, Vec3::Y),
21+
FlyCam,
22+
));
2723
}
2824

2925
#[allow(unused_mut)]

src/adapters.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use bevy::{
2-
prelude::*,
3-
render::{mesh::Indices, render_asset::RenderAssetUsages, render_resource::PrimitiveTopology},
2+
asset::RenderAssetUsages, mesh::Indices, prelude::*, render::render_resource::PrimitiveTopology,
43
};
54
use mujoco_rust::{Body, Geom, GeomType};
65
use nalgebra::{ArrayStorage, Const, Matrix, Quaternion};

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod adapters;
22
mod mujoco_shape;
33

4-
use bevy::{ecs::system::EntityCommands, prelude::*, render::mesh::Mesh};
4+
use bevy::{ecs::system::EntityCommands, mesh::Mesh, prelude::*};
55
use serde::Serialize;
66

77
use std::cell::RefCell;

src/mujoco_shape.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// Originally from https://github.com/bevyengine/bevy/pull/305/files
22

33
use bevy::{
4+
asset::RenderAssetUsages,
5+
mesh::{Indices, Mesh},
46
prelude::*,
5-
render::{
6-
mesh::{Indices, Mesh},
7-
render_asset::RenderAssetUsages,
8-
render_resource::PrimitiveTopology,
9-
},
7+
render::render_resource::PrimitiveTopology,
108
};
119

1210
/// A cylinder which stands on the XZ plane

0 commit comments

Comments
 (0)