Type Definition collider::HbGroup [] [src]

type HbGroup = u32;

A group id that may be used as a first measure to efficiently filter out hitboxes that don't interact.

The total number of groups used should in general be very small. Often 1 is enough, and 10 is excessive. As an example, in a danmaku game (which has many bullets on screen that do not interact with each other), we may use one group for bullets and one group for everything else, to avoid the quadratic cost of comparing all nearby bullets with each other.