Compare commits
	
		
			1 Commits
		
	
	
		
			implement-
			...
			renovate/c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 265c363236 | 
@@ -6,4 +6,3 @@ edition = "2024"
 | 
				
			|||||||
[dependencies]
 | 
					[dependencies]
 | 
				
			||||||
avian3d = "0.2.1"
 | 
					avian3d = "0.2.1"
 | 
				
			||||||
bevy = "0.15.3"
 | 
					bevy = "0.15.3"
 | 
				
			||||||
bevy_flycam = "0.15.0"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								renovate.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								renovate.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  "$schema": "https://docs.renovatebot.com/renovate-schema.json"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										31
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								src/main.rs
									
									
									
									
									
								
							@@ -1,38 +1,7 @@
 | 
				
			|||||||
use bevy::prelude::*;
 | 
					use bevy::prelude::*;
 | 
				
			||||||
use bevy_flycam::prelude::*;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn main() {
 | 
					fn main() {
 | 
				
			||||||
    App::new()
 | 
					    App::new()
 | 
				
			||||||
        .add_plugins(DefaultPlugins)
 | 
					        .add_plugins(DefaultPlugins)
 | 
				
			||||||
        .add_plugins(PlayerPlugin)
 | 
					 | 
				
			||||||
        .add_systems(Startup, setup)
 | 
					 | 
				
			||||||
        .run();
 | 
					        .run();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
/// set up a simple 3D scene
 | 
					 | 
				
			||||||
fn setup(
 | 
					 | 
				
			||||||
    mut commands: Commands,
 | 
					 | 
				
			||||||
    mut meshes: ResMut<Assets<Mesh>>,
 | 
					 | 
				
			||||||
    mut materials: ResMut<Assets<StandardMaterial>>,
 | 
					 | 
				
			||||||
) {
 | 
					 | 
				
			||||||
    // circular base
 | 
					 | 
				
			||||||
    commands.spawn((
 | 
					 | 
				
			||||||
        Mesh3d(meshes.add(Circle::new(4.0))),
 | 
					 | 
				
			||||||
        MeshMaterial3d(materials.add(Color::WHITE)),
 | 
					 | 
				
			||||||
        Transform::from_rotation(Quat::from_rotation_x(-std::f32::consts::FRAC_PI_2)),
 | 
					 | 
				
			||||||
    ));
 | 
					 | 
				
			||||||
    // 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(0.0, 0.5, 0.0),
 | 
					 | 
				
			||||||
    ));
 | 
					 | 
				
			||||||
    // light
 | 
					 | 
				
			||||||
    commands.spawn((
 | 
					 | 
				
			||||||
        PointLight {
 | 
					 | 
				
			||||||
            shadows_enabled: true,
 | 
					 | 
				
			||||||
            ..default()
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        Transform::from_xyz(4.0, 8.0, 4.0),
 | 
					 | 
				
			||||||
    ));
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user