⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    AnimatedToolSprintHandler MonoBehaviour

    Overview

    The AnimatedToolSprintHandler behaviour is attached to a wieldable tool to model different sprinting mechanics. This version allows you to use keyframed sprint animations on your tools by setting a bool parameter on an Animator component when the sprint animation should play, and a float parameter to tell the animator the speed. You can use this to set the clip playback speed in the AnimatorController, or to drive a blend between multiple animation clips based on speed.

    Inspector

    AnimatedToolSprintHandler

    Properties

    Motion Graph

    Name Type Description
    Min Speed Float The minimum speed the character must be moving for the sprint animation to play.
    Sprint Input Param Key String (Required) The switch parameter on the motion graph which is set by the input handler to tell the character when to sprint.
    Is Sprinting Param Key String (Required) A switch parameter on the motion graph which the graph sets when the character is sprinting.
    Can Sprint Param Key String (Optional) A switch parameter on the motion graph which tells the character if it can sprint or not.

    Animation

    Name Type Description
    In Time Float The time taken to blend into the sprint animation.
    Out Time Float The time taken to blend out of the sprint animation to idle.
    Unscaled Sprint Move Speed Float The movement speed that the sprint animations are synced to when playing at 1x speed..
    Max Speed Float A maximum speed clamp for the character when used to calculate the animation speed multiplier.
    Blend Zero Speed Float The speed below which the light sprint animation will be 100% used. Above this, the heavy animation is blended in.
    Blend Full Speed Float The speed above which the he\vy sprint animation will be 100% used. Below this, the light animation is blended in.
    Sprint Bool Parameter String A bool parameter on the Animator to signify when the weapon enters or exits sprint.
    Speed Float Parameter String A float parameter on the Animator to set the playback speed of the sprint animation.
    Blend Float Parameter String A float parameter on the Animator used to blend between the light and heavy sprint animations.

    See Also

    Wieldable Tools

    The Motion Graph

    Unity Animator

    Unity AnimatorController

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX