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

Method clear

perro_source/runtime_project/perro_physics/src/system.rs:100–130  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

98 }
99 }
100
101 pub fn clear(&mut self) {
102 self.world_2d = None;
103 self.world_3d = None;
104 self.world_2d_idle_cached = true;
105 self.world_3d_idle_cached = true;
106 self.active_collision_pairs_2d.clear();
107 self.active_collision_pairs_3d.clear();
108 self.active_area_overlaps_2d.clear();
109 self.active_area_overlaps_3d.clear();
110 self.pending_forces_2d.clear();
111 self.pending_forces_3d.clear();
112 self.pending_impulses_2d.clear();
113 self.pending_impulses_3d.clear();
114 self.stale_ids_2d.clear();
115 self.stale_ids_3d.clear();
116 self.stale_joint_ids_2d.clear();
117 self.stale_joint_ids_3d.clear();
118 self.body_sync_epoch_2d = 0;
119 self.body_sync_epoch_3d = 0;
120 self.joint_sync_epoch_2d = 0;
121 self.joint_sync_epoch_3d = 0;
122 self.trimesh_cache.clear();
123 self.next_opaque_handle = 1;
124 self.collision_pairs_scratch_2d.clear();
125 self.collision_pairs_scratch_3d.clear();
126 self.entered_pairs_scratch.clear();
127 self.area_overlap_scratch_2d.clear();
128 self.area_overlap_scratch_3d.clear();
129 }
130
131 pub fn set_paused(&mut self, paused: bool) {
132 self.paused = paused;
133 }

Callers 15

sync_world_2dMethod · 0.45
sync_world_3dMethod · 0.45
sync_joints_2d_partsFunction · 0.45
sync_joints_3d_partsFunction · 0.45
collect_collidersFunction · 0.45
collect_tail_to_endFunction · 0.45
collect_root_to_endFunction · 0.45
collect_collidersFunction · 0.45
collect_tail_to_endFunction · 0.45
collect_root_to_endFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected