Lean channel Body leveling logic will return the relationship between the agent and the 0 transformation space, using lean channelssentences, you can test is agent tilt lean up/down or roll lean left/right Mathematically, it will return the Y component of the X, Y or Z unit axis. It's one of the simplest channels. The unit axis only have length 1, so the result will be [-1,1]
- lean.x: negative means roll left, positive means roll right
- lean.z: negative means head down, positive means tilt up
- lean.y: (not usually use) negative means agent flip down, positive means agent in positive side
Example of lean.z
...
- I lean UP/DOWN
- I lean to LEFT/RIGHT
I lean UP
I lean to LEFT
This can be used to control bird flying, if tilt lean up, flip faster the wingsflap wings faster, if head lean down, stop flipflapping and playback action "glide"
(Left) flying up, wing flapping, (right) head heading down, stop flapping