onCollisionCallback property
Assign your own CollisionCallback if you want a callback when this shape collides with another PositionComponent.
Implementation
@override
CollisionCallback<PositionComponent>? onCollisionCallback;
Assign your own CollisionCallback if you want a callback when this shape collides with another PositionComponent.
@override
CollisionCallback<PositionComponent>? onCollisionCallback;