Expand description
Responsible for synchronizing physics components with other data, like keeping Position
and Rotation
in sync with Transform
.
See SyncPlugin
.
Modules§
- ancestor_
marker - Functionality for marking ancestors of entities with marker components.
Structs§
- Previous
Global Transform - The global transform of a body at the end of the previous frame. Used for detecting if the transform was modified before the start of the physics schedule.
- Sync
Config - Configures what physics data is synchronized by the
SyncPlugin
andPreparePlugin
and how. - Sync
Plugin - Responsible for synchronizing physics components with other data, like keeping
Position
andRotation
in sync withTransform
.
Enums§
- SyncSet
- System sets for systems running in
PhysicsSet::Sync
.
Functions§
- position_
to_ transform - Copies
Position
andRotation
changes toTransform
. This allows users and the engine to use these components for moving and positioning bodies. - transform_
to_ position - Copies
GlobalTransform
changes toPosition
andRotation
. This allows users to use transforms for moving and positioning bodies and colliders. - update_
previous_ global_ transforms - Updates
PreviousGlobalTransform
by setting it toGlobalTransform
at the very end or start of a frame.