Skip to content

Orient to Ground

Jared Taylor edited this page Jan 4, 2020 · 2 revisions

Orient to ground allows a character mesh to rotate based on the normal of the surface. Games that use this sort of logic are Mario Odyssey (regular movement) and Apex Legends (floor sliding).

Enabling Orient to Ground

Orient to ground can only be enabled any time we are on a walkable floor that isn't movable

It is enabled by default with a very small multiplier (-0.15) which has the effect of leaning the character against the surface they're on

You can enable or disable it at runtime based on conditions by overriding "Should Orient to Floor" in MICharacter

Changing Orient to Ground Settings

You can change settings at runtime by overriding "Get Orient to Floor Settings" in MICharacter

Keep Body Upright

"Orient Keep Upper Body Upright" is a setting in MICharacter, it will make the animation instance modify the spine bones so the body is always kept upright. It is disabled by default.

Settings

  • Orient Rotate Rate
    • How fast the mesh rotates to the floor
  • Orient Reset Rate
    • How fast the mesh rotates back upright
  • Orient Angle Multiplier
    • The most important setting - the multiplier for the angle. Default is -0.15 to make him lean against the surface. Make him lean fully against the surface with -1.0 (can go lower) or fully with the surface with 1.0 (can go higher)
  • Orient Min Angle
    • Must be at least at this angle before orienting will begin
  • Orient max angle
    • Orient can not exceed this angle
Clone this wiki locally