pitch
Details
Kode wheel segment | Movement |
Style | Action |
Modifiers | quickly / slowly / invert / world relative / camera relative / object relative |
Primarily WHEN/DO | DO |
Pre-made brains that use it | Unknown |
Movement > pitch
Description
This tile will pitch an object or character in your world (it will rotate backwards from its position socket).
Example Code
WHEN DO [pitch][slowly]
Modifiers
quickly: This changes the angle per frame from 30 to 10 degrees per frame. The object will do a full revolve in 1 second.
slowly: This changes the angle per frame to approx 1.688 degrees per frame. The object will do a full revolve in 6 seconds.
invert: This will make the object rotate forward.
toward: Paired with an IWP object or vector. Normally used with NPC brains. This will rotate the object’s forward facing vector towards a point in the world space. The effect of this on a villager brain was that he strafed around the object, and at certain distance he would flip onto his head with his legs in the air.
away from: Opposite of toward. Paired with an IWP object or vector. Normally used with NPC brains. This will rotate an object away from a point in world space. See [toward]
world relative: This will ignore the up facing vector of the object itself, and will use the world up instead.
camera relative: This will ignore the up facing vector of the object and will use the camera up instead.
object relative: This is the default setting and is only needed to be used if you have used one of the other settings, and wish to convert it back.
Other Uses
The orientation of the up vector is important to know when deciding which of these movements to use. In an object like a cube, it may not be obvious which face is up.