onCollisionStart method
onCollisionStart is called in the first tick when this object starts
colliding with other
.
Implementation
@override
@mustCallSuper
void onCollisionStart(Set<Vector2> intersectionPoints, ShapeHitbox other) {
activeCollisions.add(other);
onCollisionStartCallback?.call(intersectionPoints, other);
if (hitboxParent is CollisionCallbacks &&
triggersParentCollision &&
other.triggersParentCollision) {
(hitboxParent as CollisionCallbacks).onCollisionStart(
intersectionPoints,
other.hitboxParent,
);
}
}