startTurn
startTurn(
facing,rotation,to,seconds):void
Starts a turn on the spot to to over seconds, which steerCharacter
steps with its feet planted and its pose plays as a turn to the
side it goes.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
facing |
{ armed: boolean; side: TurnSide; target: Quaternion; turnSeconds: number; turnSecondsLeft: number; } |
- |
facing.armed |
boolean |
False from the start of a turn until the steer is centred again, so one push turns it once and not again for what a reversal has left. |
facing.side |
TurnSide |
- |
facing.target |
Quaternion |
Where a turn on the spot is heading. |
facing.turnSeconds |
number |
Seconds the turn takes end to end; the view paces its clip to this. |
facing.turnSecondsLeft |
number |
Seconds of it left. Above zero the steer is ignored: the feet are coming round and nothing else may move them. |
rotation |
Pick<Quaternion, "x" | "y" | "z" | "w" | "dot"> |
- |
to |
Pick<Quaternion, "x" | "y" | "z" | "w" | "dot"> |
- |
seconds |
number |
- |
Returns
Section titled “Returns”void