⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    RayLookahead MotionGraphCondition

    Overview

    The RayLookahead condition performs a raycast from the specified point on the character and based on either its movement, the direction it's facing, or the input direction.

    Inspector

    RayLookahead 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.

    See Also

    Motion Graph Parameters And Data

    Layers And Tags

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