docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISimulation

    Interface for simulations.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public interface ISimulation : IDisposable

    Properties

    FinalJobHandle

    The final scheduled job, including all simulation and cleanup. The end of each step should depend on this.

    Declaration
    JobHandle FinalJobHandle { get; }
    Property Value
    Type Description
    JobHandle

    The final job handle.

    FinalSimulationJobHandle

    The final scheduled simulation job. Jobs which use the simulation results should depend on this.

    Declaration
    JobHandle FinalSimulationJobHandle { get; }
    Property Value
    Type Description
    JobHandle

    The final simulation job handle.

    Type

    The implementation type.

    Declaration
    SimulationType Type { get; }
    Property Value
    Type Description
    SimulationType

    The type.

    Methods

    ScheduleStepJobs(SimulationStepInput, JobHandle, bool)

    Schedule a set of jobs to step the simulation.

    Declaration
    SimulationJobHandles ScheduleStepJobs(SimulationStepInput input, JobHandle inputDeps, bool multiThreaded = true)
    Parameters
    Type Name Description
    SimulationStepInput input

    The input.

    JobHandle inputDeps

    The input deps.

    bool multiThreaded

    (Optional) True if multi threaded.

    Returns
    Type Description
    SimulationJobHandles

    The SimulationJobHandles.

    Step(SimulationStepInput)

    Step the simulation.

    Declaration
    void Step(SimulationStepInput input)
    Parameters
    Type Name Description
    SimulationStepInput input

    The input.

    In This Article
    Back to top
    Copyright © 2024 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)