跳转到内容

coveredGround

此内容尚不支持你的语言。

coveredGround(sprite, transform): object

Defined in: sdk/src/render/coverFade.ts:62

The ground a sprite covers: its rectangle’s centre and half extents, from its size and pivot under the entity’s scale. The pivot is where the entity’s position sits in the sprite (0.5 is the middle). Rotation is not read.

SpriteData

TransformData

object

centre: object

x: number

y: number

half: object

x: number

y: number