1681-engine / index / aimPoint
Function: aimPoint() ​
ts
function aimPoint(
from,
shape,
share,
lastAim,
centre?
): object;Defined in: src/input/AimGesture.ts:143
Where an aimed skill goes, as a mouse would have said it: the aim angle and the ground point. A knob with no length keeps lastAim. A direction may snap to snap radians (0 or none for free aim).
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
from | Point | undefined |
shape | AimShape | undefined |
share | Point | undefined |
lastAim | number | undefined |
centre | number | AIM_CENTRE |
Returns ​
object
aim ​
ts
aim: number;x ​
ts
x: number;y ​
ts
y: number;