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
  • Animator
  • Transition Duration
  • Core Animation
  • General [Tab]
  • Tags[Tab]
  • Limits [Tab]
  • Speeds [Tab]
  • Ledge Parameters
  • Ledge Layer
  • Automatic
  • Kinematic
  • Wall Distance
  • Min Terrain Angle
  • Forward Length
  • Wall Checker
  • Profiles
  • Name
  • Enter Status
  • Max V Speed
  • Forward Multiplier
  • Height
  • Ledge Exit Distance
  • Exit Time
  • Align Offset
  • Orient
  • Orient Smoothness
  • Additive Position
  • Height Speed
  • Forward Speed
  • Height Curve
  • Forward Curve

Was this helpful?

  1. Main Components
  2. MAnimal Controller
  3. States

Ledge Grab

PreviousClimbNextFly

Last updated 1 year ago

Was this helpful?

Overview

The Grab Ledge State is used to perform a quick ledge climb when the character is near a flat surface. Its State is 8.

Creating the State

To create a new Ledge Grab State, click the [ + ] button on the States list.

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

Priority

Requirements

  • The state uses raycasting to find nearby surfaces. These colliders need to have the same Layer as the Ledge Layer Parameter

Activation

The state uses the values from the Profiles to cast rays that can detect colliders in front of the character. 3 Rays are Used for each Profile.

  • A first ray on the Top (Green) is cast to check if there's no Collider in Front.

  • A second ray is cast starting from the end of the first ray to find a collider downwards (Red)

  • A third ray is cast from the chest of the character, to detect a wall in front of the character (Yellow)

The State will be activated if the Top (Green) does not detect a collider and the Down (Red) and Wall(Yellow) rays detect a collider.

By Input

If the rays detect any of these colliders, use the Ledge State Input value to try to activate the state.

Automatic

Set the Automatic Parameter to true and the Animal will activate the State as soon the Ray finds any collider that can be ledge climbed, and the conditions of the rays are met.

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.

In the case of Ledge Climb the State will exit automatically when the Exit Time of the Active profile has elapsed.

Animator

Ledge Grab Substate Machine

The Climb state requires an Animation State that is in charge of the Ledge Grab movement.

Transition Duration

The positioning and alignment of the character to the correct position is determined by the transition time of the Any State to the State Animations. By default is set to 0.1

This value is really important and is used in the Profile Offset Position values.

Core Animation

All States have a core animation on which the Animal will stay while the state is active. In the case of Ledge Grab will be the animations for each ledge Grab Profile.

The condition to enter the right profile is the value of the Enter Status Parameter.

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

General [Tab]

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

Tags[Tab]

Since the state only uses an animation per activation, meaning there are no enter or exit animation clips, there is no need to use Tag modifiers or Enter/Exit Tag.

RootMotion, +Rot , +Pos, and Ignore Lower State should be enabled, all other tag modifiers should be disabled.

In this state the animal is not Grounded, Gravity is disabled, and there is no Orientation to the ground.

Limits [Tab]

Limits can be set to your own needs. If you want to disable/sleep the state while the character is in another state, or when is playing a mode, or stance; it can be done in this section.

E.g. Ledge grab is sleep if the character is on swimming underwater.

Speeds [Tab]

Ledge Parameters

Ledge Layer

Layer to Identify Edge surfaces

Automatic

The state will be activated as soon as the Try Activate conditions are met (Rays Conditions) No need to use the Input

Kinematic

The character rigidbody will be kinematic as long as the state is active. Use this when collides are not allowing the correct movement of the State)

Wall Distance

The distance needed to place the character in front of the wall when the state is activated

Min Terrain Angle

If the Top Surface is not Flat. It must have in the range of 0 and this value in order to be able to activate the State

Forward Length

Global Front Distance to check colliders in front of the character (Green and Yellow Ray Length )

Wall Checker

Vertical Distance to check the Wall in front of the character (Yellow Ray Height)

Profiles

Name

Name of the Profile

Enter Status

This value is used by the Animator to activate the correct animation

Max V Speed

Maximum Speed the character may need to check and use a profile.

E.g. If the Animal is Walking (Speed 1) or running (Speed 3), you can have different profiles for each activation.

Forward Multiplier

Local Forward Length applied to the global Forward Length (Green Ray)

Height

Height value for the Top Ray (Green ray).

Ledge Exit Distance

Height Value of the Down Ray. This ray is in charge of finding a flat surface (Red Ray)

Exit Time

The time needed to activate the Allow Exit() Method on the state. (by Default is 0.9 almost at the end of the animation). This allow other lower priorities states to activate themselves

Align Offset

Offset values on the Vertical and Forward position applied to the character when it starts the state.

Try different values until you get the proper hand placement on the state.

This Align value is very tight to the Animator Transition Time. If you change the transition time you need to update these values.

Orient

When enabled, it will orient the character perpendicular to the wall.

Orient Smoothness

If Orient is enabled, this is the smoothness value to orient the character perpendicular to the wall.

Additive Position

When is enabled, it will add vertical and forward movement to your character in case your animations are not RootMotion.

Height Speed

Amount of Vertical Push added to the character when the state is enabled

Forward Speed

Amount of Forward Push added to the character when the state is enabled

Height Curve

The multiplier of the Height Speed throughout the whole animation.

E.g. in the First half of the animation, the character will be pushed in the vertical axis, but in the other half, NO Vertical movement will be applied.

Forward Curve

The multiplier of the Forward Speed throughout the whole animation.

E.g. in the First half of the animation, the character will NOT be pushed in the Forward axis, but in the other half will be moved forward.

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 Ledge Grab state, those states should have a higher priority.

Animal Reactions can be used to activate the state. Check

This state does not require any Speed Modifiers. All the movement is done either by RootMotion or via the .

🐺
🔷
🧗‍♂️
Idle
Locomotion,
Fall
Death
Reactions
Profiles
ID
Climbing Edge with differnt profiles
The Transition Enter Condition of this state is State=8
Value of the State Enters Status Parameter on the Animator
Value of the Enter Status on the ProfileState
angle 35 wont activate the state if the value of Min Terrain is lower than 35
"Ledge Grab" has a Enter Status of 0 and "Step Up 1 Meter" has Enter Status of 1