{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method SchedulePhysicsWorldBuild | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SchedulePhysicsWorldBuild

    SchedulePhysicsWorldBuild(ref SystemState, ref PhysicsWorldData, in JobHandle, float, bool, float3, uint)

    Schedule jobs to fill the PhysicsWorld in specified physicsData with bodies and joints (using entities from physicsData's queries) and build broadphase BoundingVolumeHierarchy. Needs a SystemState to update component handles.

    Declaration
    public static JobHandle SchedulePhysicsWorldBuild(ref SystemState systemState, ref PhysicsWorldData physicsData, in JobHandle inputDep, float timeStep, bool isBroadphaseBuildMultiThreaded, float3 gravity, uint lastSystemVersion)
    Parameters
    Type Name Description
    SystemState systemState

    [in,out] State of the system.

    PhysicsWorldData physicsData

    [in,out] Information describing the physics.

    JobHandle inputDep

    The input dependency.

    float timeStep

    The time step.

    bool isBroadphaseBuildMultiThreaded

    True if is broadphase build multi threaded, false if not.

    float3 gravity

    The gravity.

    uint lastSystemVersion

    The last system version.

    Returns
    Type Description
    JobHandle

    A JobHandle.

    SchedulePhysicsWorldBuild(ref SystemState, ref PhysicsWorld, ref NativeReference<int>, in PhysicsWorldComponentHandles, in JobHandle, float, bool, float3, uint, EntityQuery, EntityQuery, EntityQuery)

    Schedule jobs to fill specified PhysicsWorld with bodies and joints (using entities from specified queries) and build broadphase BoundingVolumeHierarchy.

    Declaration
    public static JobHandle SchedulePhysicsWorldBuild(ref SystemState systemState, ref PhysicsWorld world, ref NativeReference<int> haveStaticBodiesChanged, in PhysicsWorldData.PhysicsWorldComponentHandles componentHandles, in JobHandle inputDep, float timeStep, bool isBroadphaseBuildMultiThreaded, float3 gravity, uint lastSystemVersion, EntityQuery dynamicEntityGroup, EntityQuery staticEntityQuery, EntityQuery jointEntityGroup)
    Parameters
    Type Name Description
    SystemState systemState

    [in,out] State of the system.

    PhysicsWorld world

    [in,out] The world.

    NativeReference<int> haveStaticBodiesChanged

    [in,out] The have static bodies changed.

    PhysicsWorldData.PhysicsWorldComponentHandles componentHandles

    The component handles.

    JobHandle inputDep

    The input dependency.

    float timeStep

    The time step.

    bool isBroadphaseBuildMultiThreaded

    True if is broadphase build multi threaded, false if not.

    float3 gravity

    The gravity.

    uint lastSystemVersion

    The last system version.

    EntityQuery dynamicEntityGroup

    Group the dynamic entity belongs to.

    EntityQuery staticEntityQuery

    The static entity query.

    EntityQuery jointEntityGroup

    Group the joint entity belongs to.

    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)