@@ -64,15 +64,15 @@ fn setup(
64
64
// plane
65
65
commands. spawn ( (
66
66
Mesh3d ( meshes. add ( Plane3d :: default ( ) . mesh ( ) . size ( 5. , 5. ) ) ) ,
67
- MeshMaterial3d ( materials. add ( Color :: srgb ( 0.3 , 0.5 , 0.3 ) ) )
67
+ MeshMaterial3d ( materials. add ( Color :: srgb ( 0.3 , 0.5 , 0.3 ) ) ) ,
68
68
) ) ;
69
69
70
70
let poly_dolly = asset_server. load ( GltfAssetLabel :: Scene ( 0 ) . from_asset ( "poly_dolly.gltf" ) ) ;
71
71
72
72
commands. spawn ( (
73
73
SceneRoot ( poly_dolly) ,
74
74
Transform :: from_xyz ( 0. , 0.2 , 0. ) ,
75
- DollyPosCtrlMove
75
+ DollyPosCtrlMove ,
76
76
) ) ;
77
77
78
78
commands. spawn ( (
@@ -89,26 +89,25 @@ fn setup(
89
89
let start_transform = Transform :: from_xyz ( 10.0 , 10.0 , 10.0 ) . looking_at ( Vec3 :: ZERO , Vec3 :: Y ) ;
90
90
91
91
let orth = Projection :: from ( OrthographicProjection {
92
- scaling_mode : ScalingMode :: FixedVertical { viewport_height : 2.0 } ,
92
+ scaling_mode : ScalingMode :: FixedVertical {
93
+ viewport_height : 2.0 ,
94
+ } ,
93
95
scale : 3. ,
94
96
..OrthographicProjection :: default_3d ( )
95
97
} ) ;
96
98
97
99
let pers = Projection :: from ( PerspectiveProjection :: default ( ) ) ;
98
100
99
101
if * startup_perspective == ProjectionType :: Orthographic {
100
- commands. spawn ( ( MainCamera , orth, start_transform) ) ;
101
- commands. spawn ( ( SecondCamera , pers, start_transform) ) ;
102
+ commands. spawn ( ( MainCamera , orth, start_transform) ) ;
103
+ commands. spawn ( ( SecondCamera , pers, start_transform) ) ;
102
104
} else {
103
- commands. spawn ( ( MainCamera , pers, start_transform) ) ;
104
- commands. spawn ( ( SecondCamera , orth, start_transform) ) ;
105
+ commands. spawn ( ( MainCamera , pers, start_transform) ) ;
106
+ commands. spawn ( ( SecondCamera , orth, start_transform) ) ;
105
107
}
106
108
107
109
// light
108
- commands. spawn ( (
109
- PointLight :: default ( ) ,
110
- Transform :: from_xyz ( 4.0 , 8.0 , 4.0 )
111
- ) ) ;
110
+ commands. spawn ( ( PointLight :: default ( ) , Transform :: from_xyz ( 4.0 , 8.0 , 4.0 ) ) ) ;
112
111
113
112
info ! ( "Use W, A, S, D for movement" ) ;
114
113
info ! ( "Use Space and Shift for going up and down" ) ;
0 commit comments