docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PredictPositionDelta

    PredictPositionDelta(float)

    Predict the target's position change over a given time from now

    Declaration
    public Vector3 PredictPositionDelta(float lookaheadTime)
    Parameters
    Type Name Description
    float lookaheadTime

    How far ahead in time to predict

    Returns
    Type Description
    Vector3

    The predicted position change (current velocity * lookahead time)

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)