Class PhysicsWorldBuilder
Utilities for building a physics world.
Inherited Members
Namespace: Unity.Physics.Systems
Assembly: solution.dll
Syntax
[BurstCompile]
public static class PhysicsWorldBuilder
Methods
Name | Description |
---|---|
BuildBroadphaseBVHImmediate(ref PhysicsWorld, bool, float, float3) | Build broadphase BoundingVolumeHierarchy of the specified PhysicsWorld (run immediately on the current thread) |
BuildPhysicsWorldImmediate(ref SystemState, ref PhysicsWorldData, float, float3, uint) | Fill specified PhysicsWorld with bodies and joints (using entities from specified queries) and build broadphase BoundingVolumeHierarchy (run immediately on the current thread). Needs a system to to update type handles of physics-related components. |
BuildPhysicsWorldImmediate(ref PhysicsWorld, NativeReference<int>, in PhysicsWorldComponentHandles, float, float3, uint, EntityQuery, EntityQuery, EntityQuery) | Fill specified PhysicsWorld with bodies and joints (using entities from specified queries) and build broadphase BoundingVolumeHierarchy (run immediately on the current thread). |
ScheduleBroadphaseBVHBuild(ref PhysicsWorld, ReadOnly, in JobHandle, float, bool, float3) | Schedule jobs to build broadphase BoundingVolumeHierarchy of the specified PhysicsWorld. |
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. |
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. |