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. |