File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -363,6 +363,7 @@ fn not_drawing_mouse_movement_system(
363363 Collider :: Segment ( segment) => {
364364 match point_segment_collision ( mouse_snapped. 0 , segment. 0 , segment. 1 ) {
365365 PointCollision :: None => false ,
366+ // TODO (I think) this is a hack to check if the collider is an obstacle
366367 _ => layer. 0 == 0 ,
367368 }
368369 }
@@ -462,6 +463,7 @@ fn drawing_mouse_movement_system(
462463 // "Touching" collisions are allowed only if they are the
463464 // start or end of the line we are currently drawing.
464465
466+ // TODO (I think) this is a hack to check if the collider is an obstacle
465467 if layer. 0 == 0 {
466468 ok = false ;
467469 break ;
@@ -515,6 +517,7 @@ fn drawing_mouse_movement_system(
515517 // "Connecting" collisions are allowed only if they are the
516518 // start or end of the line we are currently drawing.
517519
520+ // TODO (I think) this is a hack to check if the collider is an obstacle
518521 if layer. 0 == 0 {
519522 ok = false ;
520523 break ;
You can’t perform that action at this time.
0 commit comments