(id: u32)
| 608 | .is_some_and(|state| state.sync_epoch != sync_epoch) |
| 609 | })); |
| 610 | for id in stale.iter().copied() { |
| 611 | remove_joint_2d(world, id); |
| 612 | } |
| 613 | stale.clear(); |
| 614 | } |
| 615 | |
| 616 | fn sync_joints_3d_parts( |
| 617 | world: &mut Option<PhysicsWorld3D>, |
| 618 | stale: &mut Vec<NodeID>, |
| 619 | joint_sync_epoch: &mut u64, |
| 620 | joints: &[crate::JointDesc3D], |
| 621 | ) { |
| 622 | stale.clear(); |
| 623 | let next_epoch = joint_sync_epoch.wrapping_add(1); |
| 624 | let reset_epochs = next_epoch == 0; |
no outgoing calls