File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -965,12 +965,12 @@ mod test {
965
965
. local_anchor2 ( point ! [ 0.0 , -3.0 ] . into ( ) ) ;
966
966
#[ cfg( feature = "dim3" ) ]
967
967
let joint = RevoluteJointBuilder :: new ( Vector :: z_axis ( ) )
968
- . local_anchor1 ( point ! [ 0.0 , 1.0 , 0.0 ] . into ( ) )
969
- . local_anchor2 ( point ! [ 0.0 , -3.0 , 0.0 ] . into ( ) ) ;
968
+ . local_anchor1 ( point ! [ 0.0 , 1.0 , 0.0 ] )
969
+ . local_anchor2 ( point ! [ 0.0 , -3.0 , 0.0 ] ) ;
970
970
impulse_joints. insert ( h, h_dynamic, joint, true ) ;
971
971
972
972
let mut parameters = IntegrationParameters :: default ( ) ;
973
- parameters. dt = 0f32 . into ( ) ;
973
+ parameters. dt = 0.0 ;
974
974
// Step once
975
975
let gravity = Vector :: y ( ) * -9.81 ;
976
976
pipeline. step (
@@ -988,8 +988,8 @@ mod test {
988
988
& ( ) ,
989
989
& ( ) ,
990
990
) ;
991
- let translation = bodies. get ( h_dynamic) . unwrap ( ) . translation ( ) ;
992
- let rotation = bodies. get ( h_dynamic) . unwrap ( ) . rotation ( ) ;
991
+ let translation = bodies[ h_dynamic] . translation ( ) ;
992
+ let rotation = bodies[ h_dynamic] . rotation ( ) ;
993
993
assert ! ( translation. x. is_finite( ) ) ;
994
994
assert ! ( translation. y. is_finite( ) ) ;
995
995
#[ cfg( feature = "dim2" ) ]
You can’t perform that action at this time.
0 commit comments