|Kode wheel segment||Movement|
|Modifiers||angle / quickly / slowly / toward / away from / in direction / left and right / up and down|
|Pre-made brains that use it||Unknown|
Movement > turn
This tile will turn an object or character in your world (it will spin on the spot). Without modifiers and set to turn on every frame, the object will spin clockwise quite fast. Set to turn only once, the object will turn 30 degrees clockwise (it takes 12 turns to get back to the first position). With modifiers you can turn an object so that its forward facing vector is turned towards another object or vector, and you can also control the angle or speed of the turn.
WHEN [Once] DO [turn][towards][IWP:tree]
angle Paired with a number this will change the angle the object will turn per frame (default is 30).
quickly: This changes the angle per frame from 30 to 10 degrees per frame. The player will do a full revolve in 1 second.
slowly: This changes the angle per frame to approx 1.688 degrees per frame. The player will do a full revolve in 6 seconds.
toward: Paired with an IWP object or vector. Normally used with NPC brains. This will turn the object’s forward facing vector towards a point in the world space. Depending on the position of the object and the angle of turn per frame, the object may not be able to turn enough during a [once] call to show an effect. Turning a player character towards an object without a limiter on the WHEN side will mean the players forward vector will be permanently pointed at the object, and will strafe when moving so they face the object constantly. This can be prevented by using a limiting tile such as duration.
WHEN [duration timer] DO [turn][toward][IWP:door][quickly]
away from: Opposite of toward. Paired with an IWP object or vector. Normally used with NPC brains. This will turn an object away from a point in world space. See [toward]
in direction: Paired with and IWP object or vector or direction tile. The character will turn in this direction without stopping (unless otherwise directed).
left and right: This tile restricts turn to left and right. A bit of a superfluous tile really, as the object will only turn left and right by default. Not sure of an application.
up and down: This tile restricts turn to up and down. Which, because a turn is left and right only it means the player does not move at all. Not sure of an application.