Appearance
pixi-hm05 (player) / pixi-hm05 / cardHitPoint
Function: cardHitPoint()
ts
function cardHitPoint(obj, p):
| {
x: number;
y: number;
}
| null;A GLOBAL point over a card → the global point the flat (unprojected) art has there, so hit tests inside it work as if it were flat; null = the card is not under it. Objects that are not cards pass it through.
Parameters
| Parameter | Type |
|---|---|
obj | Container |
p | { x: number; y: number; } |
p.x | number |
p.y | number |
Returns
| { x: number; y: number; } | null