Function avian3d::prepare::init_transforms

source ·
pub fn init_transforms<C: Component>(
    commands: Commands<'_, '_>,
    config: Res<'_, PrepareConfig>,
    query: Query<'_, '_, (Entity, Option<&Transform>, Option<&GlobalTransform>, Option<&Position>, Option<&Rotation>, Option<&PreviousRotation>, Option<&Parent>, Has<RigidBody>), Added<C>>,
    parents: Query<'_, '_, (Option<&Position>, Option<&Rotation>, Option<&GlobalTransform>), With<Children>>
)
Expand description

Initializes Transform based on Position and Rotation or vice versa when a component of the given type is inserted.