Appearance
pixi-hm05 (player) / pixi-hm05 / unprojectToFlat
Function: unprojectToFlat()
ts
function unprojectToFlat(
obj,
x,
y
):
| {
x: number;
y: number;
}
| null;A point in obj's PARENT space (as a flat hit test would use) → the point on the card it shows, in the parent space too; null = it misses the card (edge-on, behind the eye, the hidden back). Uses fresh transforms, so it works outside a render.
Parameters
| Parameter | Type |
|---|---|
obj | Container |
x | number |
y | number |
Returns
| { x: number; y: number; } | null