【发布时间】:2023-02-09 01:34:40
【问题描述】:
我想检查精灵的某个区域是否有一个点 但是 containsPoint 方法不包括该区域并检查它是否已满。
const box = Sprite.from(box2Texture)
box.anchor.set(0.5, 0.5)
box.position.set(50, 25)
box.scale.set(0.3)
box.hitArea = new Polygon([-50, 0, 0, -25, 50, 0, 0, 25])
【问题讨论】:
标签: javascript pixi.js