Externalize the proximity code (renamed intersection).
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user