Function: PointerToLocal()
ts
function PointerToLocal(
engine,
scene,
id,
x,
y,
out
): boolean;An IInput position (CSS pixels from the canvas's top-left) → the entity's local space (y up, origin at the entity). False when there's no orthographic camera drawing it.
Parameters
| Parameter | Type |
|---|---|
engine | IEngine |
scene | Scene |
id | number |
x | number |
y | number |
out | { x: number; y: number; } |
out.x | number |
out.y | number |
Returns
boolean