docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IContactsJobExtensions

    The contacts job extensions.

    Inheritance
    object
    IContactsJobExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public static class IContactsJobExtensions

    Methods

    EarlyJobInit<T>()

    Early job initialize.

    Declaration
    public static void EarlyJobInit<T>() where T : struct, IContactsJobBase
    Type Parameters
    Name Description
    T

    Generic type parameter.

    ScheduleParallel<T>(T, int, SimulationSingleton, ref PhysicsWorld, JobHandle)

    Schedules an IContactsJob for parallel processing.

    Declaration
    public static JobHandle ScheduleParallel<T>(this T job, int innerLoopBatchCount, SimulationSingleton simulationSingleton, ref PhysicsWorld world, JobHandle inputDeps) where T : struct, IContactsJobBase
    Parameters
    Type Name Description
    T job

    The scheduled job.

    int innerLoopBatchCount

    Granularity in which workstealing is performed. A value of N, means the job queue will combine N job executions and perform them in an efficient inner loop.

    SimulationSingleton simulationSingleton

    The simulation singleton.

    PhysicsWorld world

    [in,out] The physics world.

    JobHandle inputDeps

    The input dependencies.

    Returns
    Type Description
    JobHandle

    A JobHandle.

    Type Parameters
    Name Description
    T

    Generic type parameter.

    Schedule<T>(T, SimulationSingleton, ref PhysicsWorld, JobHandle)

    Schedules an IContactsJob for serial processing.

    Declaration
    public static JobHandle Schedule<T>(this T job, SimulationSingleton simulationSingleton, ref PhysicsWorld world, JobHandle inputDeps) where T : struct, IContactsJobBase
    Parameters
    Type Name Description
    T job

    The scheduled job.

    SimulationSingleton simulationSingleton

    The simulation singleton.

    PhysicsWorld world

    [in,out] The physics world.

    JobHandle inputDeps

    The input dependencies.

    Returns
    Type Description
    JobHandle

    A JobHandle.

    Type Parameters
    Name Description
    T

    Generic type parameter.

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