Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

 

Image Removed
Example of lean.z

...

  • I lean UP/DOWN
  • I lean to LEFT/RIGHT

 

Image Added
I lean UP


Image Added
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