⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    EnhancedSphereLookahead MotionGraphCondition

    Overview

    The EnhancedSphereLookahead condition performs a spherecast from the specified point on the character and based on either its movement, the direction it's facing, or the input direction. The cast results are output to motion graph parameters for later use.

    Inspector

    EnhancedSphereLookahead Condition

    Properties

    Name Type Description
    Lookahead Dropdown How the lookahead direction is calculated. The available options are:
    • Velocity All Axes uses the current velocity of the character.
    • Velocity Horizontal Plane uses the character velocity constrained to its horizontal plane.
    • Velocity Vertical uses the character velocity constrained to its up-vector.
    • Direction All Axes uses the direction the character is moving in, but checks a fixed distance ahead.
    • Direction Horizontal Plane uses the character movement direction constrained to its horizontal plane.
    • Direction Vertical uses the character movement direction constrained to its up-vector.
    • Input Direction uses the character input vector transformed into the character's local space.
    Lookahead Time Float When using the Velocity lookahead types, the distance is based on velocity x time.
    Lookahead Distance Float The cast distance when using the Direction or Input lookahead types.
    Source Height Float The point on the character capsule to cast from. 0 is the base of the capsule centerline. 1 is the top of the capsule centerline.
    Layer Mask Layermask The layers to check against.
    Does Hit Boolean Is the codition true if the cast hits something or does not.
    Hit Point Output Vector Parameter An optional graph parameter to output the capsule cast hit point to.
    Hit Normal Output Vector Parameter An optional graph parameter to output the capsule cast hit normal to.
    Hit Transform Output Transform Parameter An optional graph parameter to output the capsule cast hit transform to.

    See Also

    Motion Graph Parameters And Data

    Layers And Tags

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