Animal Controller
📥 Integrations📑 Changelog✅Social
  • 🤝Welcome to Malbers Animations Assets
  • 🌐Discover all my Assets
  • 💫What's New
  • 🌀Upcoming assets
  • 📋Changelog
  • ↗️Upcoming Changelog
  • 🛣️Road Map
  • ✍️End User Licence Agreement
  • 🌟Features
  • Improve Performance Tricks
  • 😓Know Limitations so far
  • 📥Downloads
  • QuickStart
    • 📖Guide to use All Malbers Assets with (AC)
    • 🔼Upgrade to URP
    • 🔼Upgrade to HDRP
    • 💔Common Issues
    • 🔔Tips and Tricks
  • Guides and Tutorials
  • 📺YouTube Tutorials
    • 📺Video Tutorials (On Queue)
  • 📱Mobile Setup Guide
    • Mobile Joystick
  • 🧐How to: Animal Controller
    • 🔹Play a Mode while Moving
    • 🔹Create and configure a new mode
    • 🔊Adding Sound Effects
    • 🔹Rebone Mesh Tutorial (Skin Mesh is Missing)
    • 🔹Add Movement with Non RootMotion Animations
    • 🔹Fetch a ball
    • 🔹Set up Timeline
    • 🔹Make Animal flee when see the animal Player
    • 🔹Animal Controller for Humanoids
    • Create a Shootable Weapon From Scratch
    • ⚔️How to Fix weapons offset and values (Bow, Pistol)
    • ✨Add a Effect to the Effect Manager
    • 🕹️Connect Inputs to the Controller
    • Modify the controller with a Stat
    • Use the Modify Stat Component
    • 📡Use a MEvent and MEvent Listeners
    • 💎Change from Faceted to Smooth poly art Animals
    • ⁉️Listen when an Mode starts or ends
  • 🐎How to: Horse Animset Pro
    • 🐴Call the Mount
    • 🤠Change Meshes for the Rider
    • 🏇Make any animal mountable
  • 🕺Strafing
  • Main Components
    • 🐺MAnimal Controller
      • General
        • Pivots
      • Speeds
      • 🔷States
        • 🕴️Idle
        • 🏃‍♂️Locomotion
        • 🌠Fall
        • 🤾‍♀️Basic Jump
        • 🤾‍♂️Root Motion Jump
        • 🐟Swim
        • 🐊UnderWater
        • 🧗‍♂️Climb
        • 🧗‍♂️Ledge Grab
        • 🦅Fly
        • 🪂Glide
        • 🧗Wall Run
        • 🧗Wall Run Vertical
        • ⛷️Slide
        • ☠️Death
        • ☠️Death Ragdoll
        • 🆕Creating a new State
      • 🟩Modes
        • 🟩Mode Behavior
        • 🟩Mode Sequence
      • 🅾️Stances
      • Advanced
      • Animal Modifiers
      • Events
      • Debug
      • Animal Animator Behaviors
      • Methods and Properties
    • 🎮Malbers Input & MInput
      • Methods and Properties
    • 🤖AI
      • AI Animal Control
      • MWayPoint
      • Wander Area
      • AI Target
      • Animal Brain
        • AI States
        • Tasks
          • General - Chance
          • General - Empty
          • General - Invoke Event
          • General - Send Message
          • General - Play Audio
          • General - Quick Align
          • General - Reaction
          • General - Set Look At Aim
          • General - Set Stat
          • General - Wait
          • Animal - Set Speed
          • Animal - Play Mode
          • Animal - Set/Play State
          • Animal - Set Stance
          • Animal - Set Strafe
          • Movement - Move Stop
          • Movement - Patrol
          • Movement - Set Destination
          • Movement - Set Target
          • Variables - Set Var Listener
          • Weapons - Weapon Tasks
        • Decisions
          • General - AND
          • General - Check Stat
          • General - Compare Stats
          • General - Look
          • General - OR
          • General - Is Task Done?
          • General - Wait
          • Movement - Has Arrived
          • Movement - Check Target
          • Animal - Check Mode
          • Animal - Check Stance
          • Animal - Check State
          • Variables - Check Scriptable Variable
          • Variables - Check Transform Var
          • Variables - Check Var Listener
          • Runtime Set - Is Target in Runtime Set
      • 📌Point Click
    • 🧨Reactions
    • 📶Combo Manager
    • ⚔️Weapon Manager
      • 🛡️MWeapon [General] Properties
      • 🛡️MWeapon [Damage] Properties
      • 🛡️MWeapon [IK] Properties
      • ⚔️MMelee
      • 🔫MShooteable
      • 🏹Bow
    • 〰️Path Constraint
      • 〰️MPath
      • 〰️Path Link (Straight)
      • 〰️Path Link (Cinemachine Path)
      • 〰️Path Creator(Sebastian Lague)
    • Speed Ground Changer
  • Scriptable Architecture
    • 💠Scriptables
      • 🔹Bool Var
      • 🔹Int Var
      • 🔹Float Var
      • 🔹String Var
      • 🔹ValueToString
      • 🔢Variable Listeners & Comparers
      • 🔰IDs
      • 🎫Tags
      • 🪝Transform Hook
      • 📣MEvents
      • 📣MEvent Listener
      • 📦Runtime gameobjects
    • 🔤MLocal Variables
  • Secondary Components
    • ⚔️MDamager
      • 🐾MAttack Trigger
      • 🐾Attack Trigger Behavior
      • 🏉MProjectile
      • 🏹Projectile Thrower
      • 🤯MExplosion
    • 🤕MDamageable
    • 🧊Zones
      • Public Methods
    • ✊Pick Up - Drop
    • ✊Pickable
    • 🚩Respawner
    • 🚩Respawner NPC
    • 🚩Simple Respawner
    • 🏁CheckPoint
    • IK Manager
      • IK Processors
      • Weight Processors
  • Global Components
    • 🧡Stats
      • 🔸Stat Modifier
      • 🔸Modify Stat <Component>
      • 🔸Modify Stat <Asset>
      • 👨‍💻Public Methods
    • Animator Behaviours
      • Message Behaviour
      • Random Behaviour
      • Is Kinematic Behaviour
      • Sound Behaviour
      • Rigid Constraint Behaviour
    • 🟩Trigger Proxy
    • 🔌Interactable
    • ⚡Interactor
    • ⁉️Conditions
    • 🎥Free Look Camera
    • 🎥Cinemachine
    • UI
      • Unity Utils
  • Riding System (HAP)
    • Horse Animset Pro (HAP) Riding System
    • The Art of (HAP)
    • Mount
      • Methods and Properties
    • MRider
      • Methods and Properties
    • Mount Triggers
    • Mount Points
  • Utilities
    • Material Changer
    • Active Meshes
    • Effect Manager
    • Effect Behavior
    • Animator Event Sounds
    • Blend Shapes
      • Blend Shape Preset
    • Look At
    • 🏹Aim
    • 🎯Aim Target
    • 🎯Lock On Target
    • 🐾Steps Manager
    • 🐾Step Trigger
    • 🔗Mode Align
    • 🔗Aligner
    • Component Selector
    • MAnimalAnimatorSync
    • Multiple Time Checker
    • MAnimalAnimatorSync
  • Annex
    • 🗃️Integrations
      • General HAP Integration
      • Rewired
      • Invector Templates
        • Invector Weapon Settings
      • Animals Controller + Invector
      • Ootii's Motion Controller
      • Opsive Ultimate Character Controller (UCC 3.03)
      • Opsive Ultimate Character Controller (UCC 3.08) Generic
      • AStar Pathfinding
      • Unity Input System (NEW)
        • New Input Link [Old Versions]
      • Game Creator
      • Game Kit Controller
    • Contact
    • 🤔FAQ
    • Refund Policy
  • Games using Malbers Animations
  • Interfaces
    • IAITarget
    • IWayPoint
    • IAIControl
    • IAim
    • IAlign
    • IGravity
    • IInteractor
  • ULTIMATE SELECTOR
    • Overview
    • Selector Manager
    • Selector Editor
    • Selector Controller
    • Selector Item
    • Selector UI
    • Selector Data
    • Changelog (Selector)
  • 🎒Malbers Inventory Add-On
    • Overview
      • Compatibility Matrix
      • Roadmap
      • Update Notes
  • Updating from v1.1.1 to v1.2 Instructions
  • Basic Setup Instructions
    • Creating a new Item
      • Adding Buffs/Debuffs to Items
      • Setting up Item Reactions
      • Custom Rarities
    • Setting up Item/Inventory Types
    • Set up the Pick/Drop Component
    • Setting up the Notifications
    • Setting up the Item Info panel
  • Inventory Set
    • Events
  • Inventory Master
  • Notification Manager
    • Notification Child
    • Events
  • Save/Load System
  • Item Spawner
  • Storage Chests
    • Chest Inventory
    • Chest Inventory UI
  • Using Armour
  • Shop System
    • Shop
    • Shop UI Manager
  • Cooking System
    • Create a new Recipe
  • UI Manager
  • Hotbar
Powered by GitBook
On this page
  • Overview
  • Creating the Glide State
  • Priority
  • Requirements
  • Activation
  • By Input
  • Using a Zone
  • Using a Reaction
  • Exit Conditions
  • General
  • ID
  • Enter Input
  • Tags
  • Limits
  • Animator
  • Speed Set
  • Glide Parameters
  • Gravity Drag
  • Bank
  • Pitch Limit
  • Bank Strafe
  • Pitch Strafe
  • Inertia Lerp
  • Always Forward
  • Use Camera Input
  • Landing on Layer
  • Check Land Distance
  • Land Distance
  • Lower Blend Land Distance
  • Lerp Distance

Was this helpful?

  1. Main Components
  2. MAnimal Controller
  3. States

Glide

PreviousFlyNextWall Run

Last updated 3 months ago

Was this helpful?

Overview

The Glide State allows the character to glide (Fall gracefully). Its State is 11.

Creating the Glide State

To create a new Glide State. use the Plus [+] button on the States list

Or just duplicate any of the already created Glide States Assets of any character you own and drag it to the States List.

Priority

Requirements

Without setting this 'Rotator' gameObject on the Advanced tab the Glide State won't work properly

Activation

This state mainly uses an Input value to be Activated.

By Input

When Pressing the Input Value for Glide

This will be connected automatically with the state if the state has the same value for its Input.

Using a Zone

A Zone can activate the Gliding state.

Using a Reaction

Exit Conditions

Internally, the exit conditions will be executed to check if the State can exit. In the case of this state the conditions are:

  • The animal is Gliding near the ground so he can land (when Can Land is enable)

  • The Input for fly is released (when the Glide Input is set to pressed)

  • The Input for fly is toggled to off (when the Glide Input is set to toggle)

  • A Higher priority State is Activated. (E.g. The animal glide toward the water)

  • MAnimal.State_AllowExit() is called.

General

ID

Glide. Its value is 11

Enter Input

Input to Activate is set to Glide. This should match the Input set on the Malbers/MInput Component

Tags

MAIN TAG [Glide]

  • Input: "Fly"

  • General

    • RootMotion = True

    • Sprint = false

    • Gravity = false

    • Grounded = false

    • Custom Rotation = false

    • Orient to Ground = false

    • Ignore Lower States = true

    • Persistent = false

    • Lock Movement = false

    • Lock Input = false

    • Additional Position Speed = true

    • Additional Rotation Speed = True

    • Free Move = true

Limits

Limit the State to be activated when any of the conditions on this section is valid.

In the case of the Glide State, this should be only activated when the Fall State is Active.

You can add more limitations if you need.

Animator

The Fly state requires an Animation State that is in charge of the Glide movement.

All states have a core animation state. For glide is a blend tree with the Tag Glide.

Since the State is a moving state, the Speed Multiplier must be set as Parameter "SpeedMultiplier"

Glide Enter Animation is Optional

This Blend Tree is usually set this way:

You can use a simplified version with just one animation instead of using a blendtree.

Speed Set

Glide Parameters

Gravity Drag

How much Drag will be applied to the Glide State

Bank

Bank Rotation when turning left and right

Pitch Limit

Forward Pitch Rotation when is gliding forward

Bank Strafe

Bank Value if Strafe with this State is activated

Pitch Strafe

Pitch Value if Strafe with this State is activated

Inertia Lerp

When Entering the Glide State... The animal will keep the Velocity from the last State if this value is greater than zero

Always Forward

The animal will move forward while Gliding, without the need to push the W Key, or Move forward Input

Use Camera Input

The animal will change the Camera Input while the Animal is using this State

Landing on Layer

Layers to Land on

Check Land Distance

Ray Length multiplier to check for ground near. This value needs to be greater than Land Distance

Land Distance

Minimum Land Distance to Land Automatically

Lower Blend Land Distance

Minimum Ground Distance to Change the State Float Value to 0

Lerp Distance

Value to Lerp the State Float value

The state should have a higher priority than , and . but below , since the animal can be killed at any time.

When the animal is in this state, all the Lower priorities states are ignored until the for this state are fulfilled.

The State requires an Empty Transform set as a . This Rotator is in charge of the Pitch and Bank rotation of the animal while gliding.

Animal Reactions can be used to activate the state. Check

The Glide needs a new that affects the Glide State

If your Glide animations are NOT RootMotion or they don't have the movement and turning speed you desire, then you need to increase the and values to be greater than zero

🐺
🔷
🪂
Idle
Locomotion
Fall
Death
Rotator
Reactions
Speed Set
Position
Rotation
ID
exit conditions
Its transition conditions is [State = 11] [StateOn]
Left: 3 Right: 1.5
Left: 60 Right: 20
Left 60 Right 20