docs.unity3d.com
    Show / Hide Table of Contents

    Class PositionPredictor

    Inheritance
    Object
    PositionPredictor
    Namespace: Cinemachine.Utility
    Syntax
    public class PositionPredictor

    Properties

    Smoothing

    Declaration
    public float Smoothing { get; set; }
    Property Value
    Type Description
    Single

    Methods

    AddPosition(Vector3, Single, Single)

    Declaration
    public void AddPosition(Vector3 pos, float deltaTime, float lookaheadTime)
    Parameters
    Type Name Description
    Vector3 pos
    Single deltaTime
    Single lookaheadTime

    ApplyTransformDelta(Vector3)

    Declaration
    public void ApplyTransformDelta(Vector3 positionDelta)
    Parameters
    Type Name Description
    Vector3 positionDelta

    IsEmpty()

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    Boolean

    PredictPosition(Single)

    Declaration
    public Vector3 PredictPosition(float lookaheadTime)
    Parameters
    Type Name Description
    Single lookaheadTime
    Returns
    Type Description
    Vector3

    PredictPositionDelta(Single)

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

    Reset()

    Declaration
    public void Reset()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023