Module sync

Source
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§

PreviousGlobalTransform
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.
SyncConfig
Configures what physics data is synchronized by the SyncPlugin and PreparePlugin and how.
SyncPlugin
Responsible for synchronizing physics components with other data, like keeping Position and Rotation in sync with Transform.

Enums§

SyncSet
System sets for systems running in PhysicsSet::Sync.

Functions§

position_to_transform
Copies Position and Rotation changes to Transform. This allows users and the engine to use these components for moving and positioning bodies.
transform_to_position
Copies GlobalTransform changes to Position and Rotation. This allows users to use transforms for moving and positioning bodies and colliders.
update_previous_global_transforms
Updates PreviousGlobalTransform by setting it to GlobalTransform at the very end or start of a frame.