Penguin Action Toolkit
  • 🐧Welcome
  • Guide
    • Step-by-Step Guide
      • Step 1: Install PAT
      • Step 2: Tutorial Scene
      • Step 3: Character - Action States
      • Practice 0: Add an Input Tag
      • Step 4: Character - Tags
      • Practice 1: Combo
      • Step 5: State Modifiers
      • Practice 1.1 & Ex: Grant Tag Mod
      • Step 6: Animation Montage
      • Step 7: Trigger Animation Event
      • Practice 1.2: Back to Grant Tag Mod
      • Step 8: Animator
      • Step 9: Attributes
      • Practice 2: Cost HP
      • Step 10: Effects
        • Step 10.1: Hitbox & Hurtbox
  • Definition & Inspector Detail
    • Actions
      • Action State
      • State Modifier
      • Move Set
    • Tag
    • Attribute
    • Effect
    • Player
    • Input
    • Locomotion
  • Tutorial
    • Installation
    • Contents of the Assets
    • Character
      • Create a Character
    • Set Up Player
    • Create a new Tag
    • Create a new Modifier
    • Use Attributes
    • Effect
      • Create an Effect
      • Apply Effects
    • Animation
      • Animatior Controller
    • PAT Manager
  • Beneath the Feathers
    • The Other One
    • Help on the Way
    • Victim or the Crime
    • Unbroken Chain
  • PAT Game Jam
    • Save the Penguin
    • Schedule
    • Terms & Conditions
  • FAQ
    • Change to Your Own Model
Powered by GitBook
On this page
  • Locomotion Base
  • Inspector
  • Locomotion Motor
  • Locomotion Anim Controller
Edit on GitHub
  1. Definition & Inspector Detail

Locomotion

PreviousInputNextInstallation

Last updated 6 months ago

Locomotion Base

Character Locomotion Base processes general locomotion data for current movement and rotation.

Inspector

Character Reference

  • Character: Reference to the Character this locomotion is referred to. If it is none, the script will automatically find Character component in this game object and its parent.

  • Character Transform: Reference to the transform which the locomotion will be applied to. If it is none, the script will automatically set the Character transform.

Attributes

  • Gravity: The direction and magnitude of gravity. If you want to disable gravity, check Base Data > Ignore Gravity below.

  • Base Data: Basic locomotion data including move speed, rotation speed, animation speed, root motion multiplier and ignore gravity.

  • Base Extra Data: Extra locomotion data related to acceleration and damp for ground and air.

Runtime Inspector

This includes some useful locomotion runtime parameters which would be very helpful for debugging.

  • On Ground: Whether the character is on the ground.

  • Current Move Direction: Current pending character move direction from player input.

  • Current Rotate Direction: Current pending character rotate direction controlled by player input and aimer.

  • Current Movement: Current movement mostly based on player input and calculated with speed and acceleration. This movement is gradually slowing down influenced by Base Extra Data > Damp instead of resetting to zero every Fixed Update.

  • Extra Movement: Extra instant movement mostly added by root motion and modifiers. This movement is reset to zero every Fixed Update.

Locomotion Motor

Locomotion Motor applies the processed locomotion data in Locomotion Base to the character. In other words, it is the motor that decides how the character moves in a scene.

Depending on different game types or special game design, different motors can be added to change character's locomotion.

Locomotion Anim Controller

CharacterLocomotionBase inspector