Skip to content

Commit

Permalink
remove rigid body from tower
Browse files Browse the repository at this point in the history
  • Loading branch information
quackercrumbs committed May 13, 2022
1 parent cbafae7 commit a3086c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,9 @@ fn setup_world(
let cube_size = 0.5;
commands
.spawn()
.insert_bundle(RigidBodyBundle {
position: Vec3::new(0., cube_size, 0.).into(),
body_type: RigidBodyTypeComponent(RigidBodyType::Dynamic),
..RigidBodyBundle::default()
})
.insert_bundle(ColliderBundle {
shape: ColliderShape::cuboid(cube_size, cube_size, cube_size).into(),
position: Vec3::new(0.0, cube_size, 0.0).into(),
..ColliderBundle::default()
})
// uncomment to view collider shape (make sure that the dimension and shape matches the colliders shape!)
Expand Down

0 comments on commit a3086c0

Please sign in to comment.