docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ScheduleBuildBroadphaseJobs

    ScheduleBuildBroadphaseJobs(ref PhysicsWorld, float, float3, ReadOnly, JobHandle, bool)

    Schedule a set of jobs to build the broadphase based on the given world.

    Declaration
    public JobHandle ScheduleBuildBroadphaseJobs(ref PhysicsWorld world, float timeStep, float3 gravity, NativeReference<int>.ReadOnly buildStaticTree, JobHandle inputDeps, bool multiThreaded = true)
    Parameters
    Type Name Description
    PhysicsWorld world

    [in,out] The world.

    float timeStep

    The time step.

    float3 gravity

    The gravity.

    NativeReference<int>.ReadOnly buildStaticTree

    The build static tree.

    JobHandle inputDeps

    The input deps.

    bool multiThreaded

    (Optional) True if multi threaded.

    Returns
    Type Description
    JobHandle

    A JobHandle.

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