MCPcopy Create free account
hub / github.com/PerroEngine/Perro / body_3d

Function body_3d

perro_source/runtime_project/perro_physics/src/system/sync.rs:610–621  ·  view source on GitHub ↗
(id: u32)

Source from the content-addressed store, hash-verified

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
616fn 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;

Calls

no outgoing calls