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 State
  • Priority
  • Requirements
  • Activation
  • By Input
  • Automatic
  • Zones
  • Reactions
  • Exit Conditions
  • Climbing Down
  • Climb Up a ledge
  • Unclimbable surface
  • High Priority States
  • Exit Input
  • Common State Properties
  • Limits
  • Animator
  • Climb SubState Machine
  • Core Animation
  • Additional Animations
  • Tag Modifiers
  • Speed Set
  • Climb Parameters
  • Climb Layer
  • Surface Material
  • Automatic
  • Climb Pivots
  • Climb Chest
  • Climb Hip
  • Climb Ray Length
  • Ray Radius
  • Wall Detection
  • Wall Distance
  • Align Smoothness
  • Ground Distance
  • Inner Corner
  • Outer Corner Speed
  • Exit State Status
  • Climb Ledge
  • Climb Off
  • Climb Down
  • Ledge Detection
  • Ray Ledge Offset
  • Ledge Rays
  • Ledge Min Exit

Was this helpful?

  1. Main Components
  2. MAnimal Controller
  3. States

Climb

(Simple Climb)

PreviousUnderWaterNextLedge Grab

Last updated 1 year ago

Was this helpful?

Overview

The Climb State is a basic climbing logic (Zelda Botw style) that moves the animal on the surface of a wall.. Its State is 7.

Creating the State

To create a new Climb State Click the [ + ] button on the States list

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

Priority

Requirements

  • All Climbable surfaces need to have a collider be with the Material "Climbable"

  • All Climbable surfaces must have the same layer as the Climb State Layer Parameter:

Activation

The climb state uses the Climb Pivot Values to detect climbable surfaces.

You need to select on the State List of your character, the Climb State. In order to see the gizmos

By Input

If the rays detect any of these surfaces, use the Climb State Input value to Start the state.

In the case of the Human and the Racoon, I use the same Input for the Action Mode. So if the Raccoon press <E> it will start climbing.

Automatic

Set the Automatic Parameter to true and the Animal will activate the State as soon the Ray finds any climbable surface.

Zones

Zones can also be used to activate the state. Set a zone in front of a climbable surface and the State will be activated.

Reactions

Exit Conditions

Internally, the exit conditions will be executed to check if the State can exit.

Since all Exit Conditions need Animations, all Exit Animations require the AllowExit Behavior in them.

Climbing Down

When the animal is Climbing Down (Pressing the S Key to Move Down); a Ray will be cast to search for the ground beneath the animal. If the ray touches the ground. This exit condition forces the Idle state to be activated after.

Climb Up a ledge

The animal will cast 2 Rays to find a Horizontal ledge. If it finds it then it will play the Ledge Exit Animation. This exit condition Forces the Locomotion state to be activated after and sets the StateExitStatus to 1.

Unclimbable surface

The Wall does not have the <Climb> Material Surface. This condition allows lower-priority states to be activated.

High Priority States

Any high-priority states can be Activated, forcing the Climb state to exit:

Exit Input

Pressing the Exit Input State the state will exit too

Common State Properties

The basic setting for the Climb state is very similar for all the animals.

  • Main Tag [Climb]

☑️RootMotion

☑️Sprint

◻️Gravity

◻️Grounded

☑️Custom Rotation

◻️Orient To Ground

☑️Ignore Lower States

◻️Persistent = False

◻️Lock Move

◻️Lock Input

☑️+ Root Speed = True

☑️ + Pos Speed

◻️ Free Movement

Limits

  • Sleep From State: (OPTIONAL)

    • Underwater, Fly. You don't want to use the climbing when those states are active

  • Sleep from Mode (OPTIONAL)

    • Attack, Action. You don't want to use the climbing when those Modes are active

  • Queue From <None>

Animator

Climb SubState Machine

The Climb state requires the Animation States that are in charge of the Climbing movement.

Core Animation

All States have a core animation on which the Animal will stay while the state is active. In case of Climb will be the Climb BlendTree Animation state.

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

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

This Climb Blend Tree is usually set this way:

It uses 8 Directional animations to move around the surface

If you don't have all the animations, you can fill the missing states with duplicate animations

Additional Animations

To have a smoother state Climb should have extra animations to transition to and from the core animations.

Climb Start

Climb Start is used when the Last State is Idle or Locomotion to quickly align the Animal to the Wall while the animation is playing.

This animation must be tagged as <ClimbStart>

The Enter Transition is Last State < 2 (Meaning the last state was Idle (0) or Locomotion (1) )

Climb Down

This Exit Animation is Activated when the animal is going down. Pressing the S Key.

  • This animation is tagged as <ClimbExit>

  • Grounded = True can be used on the transition as an alternative.

Climb Edge

This Exit Animation is called right after the <Climb Up a Ledge> conditions are fulfilled.

  • The Tag used on the Animator State is <ClimbEdge>

Tag Modifiers

Tag Modifiers change properties on the Animal Controller every time the Animal enters an animation with any of the included tags on the list.

Speed Set

Climb Parameters

Climb Layer

Layers needed to detect climbable colliders.

Surface Material

Surface Material needed on the colliders to recognize Climbable surfaces

Automatic

When this parameter is true, the animal will climb automatically a surface if is near it

Climb Pivots

Values to set properly all raycasts needed to climb Climbable surfaces.

Climb Chest

Pivot to cast a ray from the chest.

Climb Hip

Pivot to cast a ray from the hip.

Climb Ray Length

Lenght of both Hip and Chest Rays

Ray Radius

Radius of the Rays to detect walls

Wall Detection

Wall Distance

When aligning the Animal to the Wall, this will be the distance needed to separate it from it.

Align Smoothness

Smoothness value to align the animal to the wall.

Ground Distance

Distance from the Hip Pivot to the Ground. This value is used to find the ground while the animal is climbing down. Using the S key. Is represented by a White Ray.

Inner Corner

These represent 2 rays to detect Inner 90-degree corners to position the character to the right spot when detected.

If the Ray touches an inner 90-degree wall, a quick alignment will occur

Use this if you don't have turn-inner corner animations

Outer Corner Speed

Additional Speed used to move faster around the outer 90 corner

Use this if you don't have turn-outer corner animations

Exit State Status

Climb Ledge

Value of the State Exit Status value on the Animator to Activate the Climb Ledge Animation

Climb Off

Value of the State Exit Status value on the Animator to Activate the Climb Off Animation

Climb Down

Value of the State Exit Status value on the Animator to Activate the Climb Down Animation

Ledge Detection

These parameters are used to Detect a ledge when the Animal is Going Up

Ray Ledge Offset

Relative Offset Position to Cast the First Ray on top on the animal to find the ledge. Its represented by a Red Ray

Ledge Rays

Length of the Ledge Ray

Ledge Min Exit

The state should have a higher priority than , and . but below , since the animal can be killed at any time. Remember States work by priority; If you need to Jump or Fly while the animal is in the Climb state, those states should be above Climb.

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

Animal Reactions can be used to activate the state. Check

The Enter Transition from Climb is StateExitStatus = 3. Just like the value set in

The Enter Condition is Exit Status =1. Just like the value set in the parameter

The Climb needs a new that affects the State

If your Climb animations are NOT RootMotion Animations, increase the and values to be greater than zero.

Minimum Distance needed to Activate the Exit Ledge Animation. If the Second Ray Distance to the surface is greater than this value, the StateExitStatus parameter will change the value to

🐺
🔷
🧗‍♂️
Idle
Locomotion
Fall
Death
Reactions
Speed Set
exit conditions
ClimbDown
Climb Ledge
Climb Ledge.
Position
ID
Select on the List the state you want to show the gizmos
Gizmos of the Climb Pivot Parameters
A ray is cast while the downwards until it founds a ground surface
The fall state is activated if there's no climbable surface
When pressing space to jump the animal will execute an exiting jump animation.
Pressing C [Crouch Input] while climbing will exit the state
The Transition Enter Condition of this state is State=7
8 Directional animations
Enter Transition from Climb. StateExitStatus = 3 OR Grounded = True.