Added user-implementable traits for collision/proximity pair filtering.

This commit is contained in:
Crozet Sébastien
2020-10-27 16:11:20 +01:00
parent a52fb8d7e4
commit cc44b65094
6 changed files with 150 additions and 18 deletions

View File

@@ -681,6 +681,8 @@ impl Testbed {
&mut self.physics.bodies,
&mut self.physics.colliders,
&mut self.physics.joints,
None,
None,
&self.event_handler,
);
@@ -1457,6 +1459,8 @@ impl State for Testbed {
&mut physics.bodies,
&mut physics.colliders,
&mut physics.joints,
None,
None,
event_handler,
);
});
@@ -1471,6 +1475,8 @@ impl State for Testbed {
&mut self.physics.bodies,
&mut self.physics.colliders,
&mut self.physics.joints,
None,
None,
&self.event_handler,
);