This commit is contained in:
LorrensP-2158466
2025-04-05 23:52:25 +02:00
parent 153a40cb73
commit be1caf37c1
6 changed files with 6501 additions and 38 deletions

View File

@@ -16,7 +16,6 @@ fn main() {
bevy_plugin::plugin,
asset_loading::plugin,
main_menu::plugin,
physics::plugin,
level_instantiation::map_plugin,
player::plugin,
interaction::plugin,
@@ -54,16 +53,13 @@ fn setup(
MeshMaterial3d(materials.add(Color::WHITE)),
Transform::from_rotation(Quat::from_rotation_x(-std::f32::consts::FRAC_PI_2)),
));
commands.spawn((
RigidBody::Fixed,
Collider::cylinder(0.1, 4.0)
));
commands.spawn((RigidBody::Fixed, Collider::cylinder(0.1, 4.0)));
// cube
commands.spawn((
Mesh3d(meshes.add(Cuboid::new(1.0, 1.0, 1.0))),
MeshMaterial3d(materials.add(Color::srgb_u8(124, 144, 255))),
Transform::from_xyz(3.0, 0.5, 0.0),
RigidBody::Fixed,
RigidBody::Fixed,
Collider::cuboid(0.5, 0.5, 0.5),
));
// light