Struct TimeSampler | Kinematica | 0.6.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct TimeSampler

    TimeSampler allows to compute regularly spaced time samples inside a time interval

    Namespace: Unity.Kinematica
    Syntax
    public struct TimeSampler

    Fields

    advanceInSeconds

    Time step between samples

    Declaration
    public float advanceInSeconds
    Field Value
    Type Description
    Single

    sampleCount

    Number of samples, should be at least one

    Declaration
    public int sampleCount
    Field Value
    Type Description
    Int32

    startTimeInSeconds

    Time of the first sample

    Declaration
    public float startTimeInSeconds
    Field Value
    Type Description
    Single

    Properties

    Item[Int32]

    Declaration
    public float this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    Single

    Methods

    CreateFromRange(Single, Single, Int32)

    Declaration
    public static TimeSampler CreateFromRange(float startTimeInSeconds, float endTimeInSeconds, int sampleCount)
    Parameters
    Type Name Description
    Single startTimeInSeconds
    Single endTimeInSeconds
    Int32 sampleCount
    Returns
    Type Description
    TimeSampler
    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