Class PhysicsWorldExporter
Utilities for exporting physics world data to ECS components.
Inherited Members
Namespace: Unity.Physics.Systems
Assembly: solution.dll
Syntax
public static class PhysicsWorldExporter
Methods
Name | Description |
---|---|
ExportPhysicsWorldImmediate(ref SystemState, ref ExportPhysicsWorldTypeHandles, in PhysicsWorld, EntityQuery) | Copies positions and velocities of all dynamic bodies from specified PhysicsWorld to ECS components of entities returned by specified query. No need to call Update(ref SystemState) prior to calling this method. |
SchedulePhysicsWorldExport(ref SystemState, ref ExportPhysicsWorldTypeHandles, in PhysicsWorld, in JobHandle, EntityQuery) | Schedules a job that copies positions and velocities of all dynamic bodies from specified PhysicsWorld to ECS components of entities returned by specified query. No need to call Update(ref SystemState) prior to calling this method. |