diff --git a/src/physics.rs b/src/physics.rs index 73fe423..d52c663 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1979,8 +1979,8 @@ mod test{ let hitbox_mesh=h1.transformed_mesh(); let platform_mesh=h0.transformed_mesh(); let minkowski=model_physics::MinkowskiMesh::minkowski_sum(platform_mesh,hitbox_mesh); - let collision=minkowski.predict_collision_in(&relative_body,Time::MAX); - assert_eq!(collision.map(|tup|tup.1.into()),expected_collision_time,"Incorrect time of collision"); + let collision=minkowski.predict_collision_in(&relative_body,Time::from_secs(10)); + assert_eq!(collision.map(|tup|relative_body.time+tup.1.into()),expected_collision_time,"Incorrect time of collision"); } fn test_collision_rotated(relative_body:Body,expected_collision_time:Option