turnTo
turnTo(
step,character,point,turnToOptions):boolean
Turns character on the spot to face point once, over seconds,
with its feet planted and its pose playing the turn, as a cast’s
wind-up turns it to its target. Answers whether a turn started, false
where it faces the point already or stands on it. A turn is its
movement, which every page predicts for its own character, so a
predicted system starts one on both ends, and a page’s own system
starts one its room corrects where the two disagree. aimAt keeps it
facing a point as it moves; this turns it once. As Godot’s look_at,
over seconds rather than at once.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
step |
SystemStep |
character |
Entity |
point |
AimPoint |
turnToOptions |
TurnToOptions |
Returns
Section titled “Returns”boolean