Class FrictionSimulation | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class FrictionSimulation

    Inheritance
    Object
    Simulation
    FrictionSimulation
    BoundedFrictionSimulation
    Inherited Members
    Simulation.tolerance
    Namespace: Unity.UIWidgets.physics
    Syntax
    public class FrictionSimulation : Simulation

    Constructors

    FrictionSimulation(Single, Single, Single, Tolerance)

    Declaration
    public FrictionSimulation(float drag, float position, float velocity, Tolerance tolerance = null)
    Parameters
    Type Name Description
    Single drag
    Single position
    Single velocity
    Tolerance tolerance

    Properties

    finalX

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

    Methods

    dx(Single)

    Declaration
    public override float dx(float time)
    Parameters
    Type Name Description
    Single time
    Returns
    Type Description
    Single
    Overrides
    Simulation.dx(Single)

    isDone(Single)

    Declaration
    public override bool isDone(float time)
    Parameters
    Type Name Description
    Single time
    Returns
    Type Description
    Boolean
    Overrides
    Simulation.isDone(Single)

    through(Single, Single, Single, Single)

    Declaration
    public static FrictionSimulation through(float startPosition, float endPosition, float startVelocity, float endVelocity)
    Parameters
    Type Name Description
    Single startPosition
    Single endPosition
    Single startVelocity
    Single endVelocity
    Returns
    Type Description
    FrictionSimulation

    timeAtX(Single)

    Declaration
    public float timeAtX(float x)
    Parameters
    Type Name Description
    Single x
    Returns
    Type Description
    Single

    x(Single)

    Declaration
    public override float x(float time)
    Parameters
    Type Name Description
    Single time
    Returns
    Type Description
    Single
    Overrides
    Simulation.x(Single)
    Back to top
    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