Function avian3d::sync::transform_to_position

source ·
pub fn transform_to_position(
    query: Query<'_, '_, (&GlobalTransform, &PreviousGlobalTransform, &mut Position, Option<&AccumulatedTranslation>, &mut Rotation, Option<&PreviousRotation>, Option<&CenterOfMass>)>
)
Expand description

Copies GlobalTransform changes to Position and Rotation. This allows users to use transforms for moving and positioning bodies and colliders.

To account for hierarchies, transform propagation should be run before this system.