@@ -248,7 +248,7 @@ impl <'a> System<'a> for Dumb3dPhysicsSystem {
248
248
#[ cfg( test) ]
249
249
mod tests {
250
250
use amethyst:: { GameData , StateData , SimpleState , GameDataBuilder , Application } ;
251
- use amethyst:: assets:: Handlee
251
+ use amethyst:: assets:: Handle ;
252
252
use amethyst:: prelude:: Builder ;
253
253
use amethyst:: renderer:: * ;
254
254
use amethyst:: core:: Transform ;
@@ -267,7 +267,7 @@ mod tests {
267
267
// Create a texture for using.
268
268
let texture = data. world . read_resource :: < amethyst:: assets:: Loader > ( )
269
269
. load_from_data :: < Texture , ( ) > (
270
- [ 144 .0, 144 .0, 144 .0, 0.5 ] . into ( ) ,
270
+ [ 170 .0, 170 .0, 255 .0, 1.0 ] . into ( ) ,
271
271
( ) ,
272
272
& data. world . read_resource ( ) ) ;
273
273
@@ -277,11 +277,17 @@ mod tests {
277
277
( resolution. width ( ) , resolution. height ( ) )
278
278
} ;
279
279
280
- // Add Camera
281
- data. world . create_entity ( )
282
- . with ( Camera :: standard_3d ( x, y) )
283
- . with ( Transform :: from ( Vector3 :: new ( 0.0 , 0.0 , -4.0 ) ) )
284
- . build ( ) ;
280
+ {
281
+ let mut camera_transform = Transform :: from ( Vector3 :: new ( 0.0 , 0.0 , -4.0 ) ) ;
282
+
283
+ camera_transform. yaw_local ( -3.142 ) ;
284
+
285
+ // Add Camera
286
+ data. world . create_entity ( )
287
+ . with ( Camera :: standard_3d ( x, y) )
288
+ . with ( camera_transform)
289
+ . build ( ) ;
290
+ }
285
291
286
292
// Add Light
287
293
data. world . add_resource ( AmbientColor ( Rgba :: from ( [ 0.01 ; 3 ] ) ) ) ;
@@ -299,6 +305,7 @@ mod tests {
299
305
data. world . create_entity ( )
300
306
. with ( Shape :: Sphere ( 32 , 32 ) . generate :: < Vec < PosNormTex > > ( None ) )
301
307
. with ( texture)
308
+ . with ( GlobalTransform :: default ( ) )
302
309
. build ( ) ;
303
310
}
304
311
}
0 commit comments