1- use parry2d:: math:: { Pose , Real , Vector , Vector } ;
1+ use parry2d:: math:: { Pose , Real , Vector } ;
22use parry2d:: query;
33use parry2d:: query:: details:: ShapeCastOptions ;
44use parry2d:: shape:: { Ball , Cuboid , Polyline , Segment } ;
@@ -17,21 +17,21 @@ fn ball_ball_intersecting_toi() {
1717
1818 let toi_separating = query:: cast_shapes (
1919 & ball1_pos_intersecting,
20- & ball1_vel_separating,
20+ ball1_vel_separating,
2121 & ball1,
2222 & ball2_pos,
23- & ball2_vel,
23+ ball2_vel,
2424 & ball2,
2525 ShapeCastOptions :: default ( ) ,
2626 )
2727 . unwrap ( ) ;
2828
2929 let toi_penetrating_ignore_pen = query:: cast_shapes (
3030 & ball1_pos_intersecting,
31- & ball1_vel_penetrating,
31+ ball1_vel_penetrating,
3232 & ball1,
3333 & ball2_pos,
34- & ball2_vel,
34+ ball2_vel,
3535 & ball2,
3636 ShapeCastOptions {
3737 stop_at_penetration : false ,
@@ -42,10 +42,10 @@ fn ball_ball_intersecting_toi() {
4242
4343 let toi_separating_ignore_pen = query:: cast_shapes (
4444 & ball1_pos_intersecting,
45- & ball1_vel_separating,
45+ ball1_vel_separating,
4646 & ball1,
4747 & ball2_pos,
48- & ball2_vel,
48+ ball2_vel,
4949 & ball2,
5050 ShapeCastOptions {
5151 stop_at_penetration : false ,
@@ -85,30 +85,30 @@ fn ball_cuboid_toi() {
8585
8686 let toi_intersecting = query:: cast_shapes (
8787 & ball_pos_intersecting,
88- & ball_vel1,
88+ ball_vel1,
8989 & ball,
9090 & cuboid_pos,
91- & cuboid_vel1,
91+ cuboid_vel1,
9292 & cuboid,
9393 ShapeCastOptions :: default ( ) ,
9494 )
9595 . unwrap ( ) ;
9696 let toi_will_touch = query:: cast_shapes (
9797 & ball_pos_will_touch,
98- & ball_vel2,
98+ ball_vel2,
9999 & ball,
100100 & cuboid_pos,
101- & cuboid_vel2,
101+ cuboid_vel2,
102102 & cuboid,
103103 ShapeCastOptions :: default ( ) ,
104104 )
105105 . unwrap ( ) ;
106106 let toi_wont_touch = query:: cast_shapes (
107107 & ball_pos_wont_touch,
108- & ball_vel2,
108+ ball_vel2,
109109 & ball,
110110 & cuboid_pos,
111- & cuboid_vel1,
111+ cuboid_vel1,
112112 & cuboid,
113113 ShapeCastOptions :: default ( ) ,
114114 )
@@ -135,10 +135,10 @@ fn cuboid_cuboid_toi_issue_214() {
135135
136136 let hit = query:: cast_shapes (
137137 & pos1,
138- & vel1,
138+ vel1,
139139 & shape1,
140140 & pos2,
141- & vel2,
141+ vel2,
142142 & shape2,
143143 ShapeCastOptions :: default ( ) ,
144144 )
@@ -166,10 +166,10 @@ fn cast_shapes_should_return_toi_for_ball_and_rotated_polyline() {
166166
167167 let hit = query:: cast_shapes (
168168 & ball_isometry,
169- & ball_velocity,
169+ ball_velocity,
170170 & ball,
171171 & polyline_isometry,
172- & polyline_velocity,
172+ polyline_velocity,
173173 & polyline,
174174 ShapeCastOptions :: with_max_time_of_impact ( 1.0 ) ,
175175 )
@@ -198,10 +198,10 @@ fn cast_shapes_should_return_toi_for_ball_and_rotated_segment() {
198198
199199 let hit = query:: cast_shapes (
200200 & ball_isometry,
201- & ball_velocity,
201+ ball_velocity,
202202 & ball,
203203 & segment_isometry,
204- & segment_velocity,
204+ segment_velocity,
205205 & segment,
206206 ShapeCastOptions :: with_max_time_of_impact ( 1.0 ) ,
207207 )
@@ -230,10 +230,10 @@ fn cast_shapes_should_return_toi_for_rotated_segment_and_ball() {
230230
231231 let hit = query:: cast_shapes (
232232 & segment_isometry,
233- & segment_velocity,
233+ segment_velocity,
234234 & segment,
235235 & ball_isometry,
236- & ball_velocity,
236+ ball_velocity,
237237 & ball,
238238 ShapeCastOptions :: with_max_time_of_impact ( 1.0 ) ,
239239 )
0 commit comments