Skip to content
EN

Interface: HitAreaWorldRect ​

World-space hit-area rectangle, including rotation/scale from the node view.

Properties ​

PropertyTypeDescription
centerXnumber-
centerYnumber-
widthnumber-
heightnumber-
rotationnumberAngle of the rectangle's top edge in radians.
corners{ x: number; y: number; }[]Four corners in world space: top-left, top-right, bottom-right, bottom-left.
bounds{ minX: number; minY: number; maxX: number; maxY: number; }Axis-aligned world bounds of the four corners.
bounds.minXnumber-
bounds.minYnumber-
bounds.maxXnumber-
bounds.maxYnumber-

Suity 开发者文档 · API 由 TypeDoc 从声明文件生成