按照此处的示例,是否可以检测与屏幕特定侧的碰撞,例如屏幕底部?
Flutter 版本:2.2.3
Flame 版本:1.0.0-releasecandidate.13
MyCollidable 类的 onCollision 方法
@override
void onCollision(Set<Vector2> intersectionPoints, Collidable other) {
if (other is ScreenCollidable) {
_isWallHit = true;
// Detect which side?
return;
}
}