Function bevy_rapier3d::plugin::systems::writeback_rigid_bodies
source · [−]pub fn writeback_rigid_bodies(
context: ResMut<'_, RapierContext>,
config: Res<'_, RapierConfiguration>,
sim_to_render_time: Res<'_, SimulationToRenderTime>,
global_transforms: Query<'_, '_, &GlobalTransform>,
writeback: Query<'_, '_, RigidBodyWritebackComponents<'_>>
)
Expand description
System responsible for writing the result of the last simulation step into our bevy_rapier
components and the [GlobalTransform
] component.