⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    SlidingAudio MotionGraphBehaviour

    Overview

    The SlidingAudio behaviour plays a looping audio clip based on the ground contact surface, pitch shifted based on the character speed.

    Inspector

    SlidingAudio

    Properties

    Name Type Description
    Audio Data SurfaceAudioData The surface audio library for the slide audio clips.
    Surface Test Interval Int Every n-th frame, the behaviour will check what the ground surface is and switch the sliding audio if required.
    Minimum Speed Float The speed below which the pitch will be at its minimum.
    Maximum Speed Float The speed above which the pitch will be at its maximum.
    Minimum Pitch Float The minimum pitch for the slide loop.
    Maximum Pitch Float The maximum pitch for the slide loop.
    Max Ray Distance Float The downward raycast length for the ground surface test.
    Ray Offset Float The vertical offset above the absolute bottom of the character collider to start the downward surface test.

    See Also

    SurfaceAudioData

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