Struct PhysicsWorldData
Structure containing PhysicsWorld and other data and queries that are necessary for simulating a physics world. Note: it is important to create PhysicsWorldData and use it (to schedule physics world build) in the same system. Creating it in one system, and calling the Schedule() methods in another can cause race conditions.
Implements
Inherited Members
Namespace: Unity.Physics.Systems
Assembly: solution.dll
Syntax
public struct PhysicsWorldData : IDisposable
Constructors
Name | Description |
---|---|
PhysicsWorldData(ref SystemState, in PhysicsWorldIndex) | Constructor. |
Fields
Name | Description |
---|---|
ComponentHandles | The component handles. Stores the information about ECS component handles needed for generating a PhysicsWorld |
DynamicEntityGroup | Group in which the dynamic bodies belong to. |
HaveStaticBodiesChanged | A flag indicating if the static bodies have changed in this frame. |
JointEntityGroup | Group in which the joints belong to |
PhysicsWorld | The physics world. |
StaticEntityGroup | Group in which the static bodies belong to |
Methods
Name | Description |
---|---|
Dispose() | Free stored memory. |
Update(ref SystemState) | Calls the Update(ref SystemState) of the handles stored in this object. /> |