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.
Parameters
Section titled “Parameters”sprite
Section titled “sprite”transform
Section titled “transform”Returns
Section titled “Returns”object
centre
Section titled “centre”centre:
object
centre.x
Section titled “centre.x”x:
number
centre.y
Section titled “centre.y”y:
number
half:
object
half.x
Section titled “half.x”x:
number
half.y
Section titled “half.y”y:
number