turn
Turn the builder to the left or to the right.
builder.turn(TurnDirection.Left);Parameters
- direction: the direction of the turn, eg: TurnDirection.Left
Example
Make the builder turn in a full circle with 4 turns.
for (let i = 0; i < 4; i++) {
builder.turn(TurnDirection.Right);
}See Also
You can see the builder make some turns in the Build a house example.