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
  • How it works
  • Creating the State
  • Priority
  • Requirements
  • Activation
  • By Input
  • By Zones
  • Animal Reaction
  • Public Method
  • Exit Conditions
  • Speeds
  • Animator
  • Core Animation
  • Exit Transitions
  • Slide Parameters
  • Orient Lerp
  • Min Slope Angle
  • Ignore Rotation
  • Rotation Angle
  • Side Movement
  • Exit Conditions (Speed)
  • Exit Conditions (Angle Slope)
  • Exit Conditions (Wait time)
  • Auto Slope (No Ground Changer)
  • Enter Angle Slope
  • Facing Angle Slope

Was this helpful?

  1. Main Components
  2. MAnimal Controller
  3. States

Slide

PreviousWall Run VerticalNextDeath

Last updated 3 months ago

Was this helpful?

Overview

The Slide State allows the character to slide on a slippery surface. Its State is 9.

It does not require RootMotion Animations. It only requires slide animations.

How it works

Creating the State

To create a new Slide, click the Plus[+] button on the States list.

Or duplicate any of the already created Slide States Assets of any animal you own and drag it to the States List.

Priority

Requirements

It also requires a new set of sliding animations.

Activation

This state is an automatic state, meaning it will be checked for the conditions given by the Ground Changer to be activated. If the Current Slope angle is greater than the Ground Changer Min Slope Angle then the state will be activated. See GroundChanger conditions for more details

The state can also be automatically activated if the Slope Option is enabled.

By Input

The State does not need an input to be activated. Only a Ground Speed Changer component

By Zones

The State does not need a zone to be activated. Only a Ground Speed Changer component

Animal Reaction

Public Method

To activate the Jump State via script call the method:

Animal.State_Activate(9) or Animal.State_Activate(StateEnum.Slide)


Exit Conditions

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

  • A State with greater priority values is Activated

  • The current Angle Slope of the terrain is lower than the Min Angle Slope of the Ground Speed Changer

Speeds

How fast the Slide will be done is due to the Speed Set Modifiers.

Animator

The Slidestate requires the Animation States in charge of the Slide Logic

Core Animation

All States have a core animation, on which the animal will stay while the state is active. In the case of Slide will be the Slide Animation State.

⚠️This core animation must be always tagged just like the Name of the State ID.

You can create a 1DBlend tree to have better animations for the sliding. Use the Horizontal value.

The slide animations do not require to be rootmotion animations

Exit Transitions

(Newer Version of AC does not require exit transitions on the States)

Slide Parameters

Orient Lerp

Lerp value for the Alignment to the surface

Min Slope Angle

If the current Slope of the character is greater than this value, the state can be activated.

If the current Slope of the character is lower than this value. The state will exit.

Ignore Rotation

The rotation of the character while sliding will be ignored. This value is overridden by the Ground Slide Data. (This value will be used when AutoSlope is true)

Rotation Angle

When Sliding the Animal will be able to orient toward the direction of this given angle

Side Movement

When Sliding the Animal will be able to move horizontally with this value. This value will be modified by the Ground Speed Changer Data.

Exit Conditions (Speed)

If the Speed is lower than this value the Slide state will end, even when we are still on a Slide Ground

Exit Conditions (Angle Slope)

If the Slope of the Slide ground is greater than this value, the Slide State will exit. Even when we are still on a Slide Ground

Exit Conditions (Wait time)

When a Flat terrain is reached. it will wait this time to transition to Locomotion or Idle.

Auto Slope (No Ground Changer)

Activate the Sliding state if the character is on a slope

(It allows to activate the state without the Speed Ground Changer Component)

Enter Angle Slope

If the Slope of the Slide ground is greater than this value, the Slide State be Activated. Zero value will ignore Enter by Slope

Facing Angle Slope

Enter the Slide state if the Character is facing the slope.. Default value 90

The character will detect the ground underneath and it will search for a Component attached to the ground. If the r has enabled the Slide option. the State will be activated.

The state should have a higher priority than , and but below since the animal can fall anytime if there's no more ground beneath it.

When the animal is in this state, all the Lower priority states are ignored until the for this state are fulfilled, or a higher priority state has valid activation conditions.

The Slide state requires a ground with thecomponent attached to work, with the Slide option set to true.

Animal Reactions can be used to activate or force-activate the state. Check

There's no more ground with a beneath the character

🐺
🔷
⛷️
Ground Speed Changer
Ground Change
Idle
Locomotion,
Fall
exit conditions
SpeedGround Changer
Reactions
Ground Speed Changer
ID
The animal will go down on a slide slope with a 15 value of velocity
The Enter Transition Condition is State = 9 (ID)
Enter Transition and Conditions
Value changes from 5 to 50
The ground slopes activate the sliding