Function bevy::sprite::collide_aabb::collide
[−]Expand description
Axis-aligned bounding box collision with “side” detection
a_pos
andb_pos
are the center positions of the rectangles, typically obtained by extracting thetranslation
field from aTransform
componenta_size
andb_size
are the dimensions (width and height) of the rectangles.