Externalize the proximity code (renamed intersection).

This commit is contained in:
Crozet Sébastien
2020-12-17 13:23:00 +01:00
parent e231bacec6
commit 29717c2887
22 changed files with 144 additions and 1051 deletions

View File

@@ -202,11 +202,11 @@ impl Testbed {
};
let contact_channel = crossbeam::channel::unbounded();
let proximity_channel = crossbeam::channel::unbounded();
let event_handler = ChannelEventCollector::new(proximity_channel.0, contact_channel.0);
let intersection_channel = crossbeam::channel::unbounded();
let event_handler = ChannelEventCollector::new(intersection_channel.0, contact_channel.0);
let events = PhysicsEvents {
contact_events: contact_channel.1,
proximity_events: proximity_channel.1,
intersection_events: intersection_channel.1,
};
let physics = PhysicsState::new();