Fix examples
This commit is contained in:
@@ -87,7 +87,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
|||||||
|
|
||||||
// Callback that will be executed on the main loop to handle proximities.
|
// Callback that will be executed on the main loop to handle proximities.
|
||||||
testbed.add_callback(move |mut graphics, physics, events, _| {
|
testbed.add_callback(move |mut graphics, physics, events, _| {
|
||||||
while let Ok(prox) = events.events.try_recv() {
|
while let Ok(prox) = events.collision_events.try_recv() {
|
||||||
let color = if prox.started() {
|
let color = if prox.started() {
|
||||||
[1.0, 1.0, 0.0]
|
[1.0, 1.0, 0.0]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
|||||||
|
|
||||||
// Callback that will be executed on the main loop to handle proximities.
|
// Callback that will be executed on the main loop to handle proximities.
|
||||||
testbed.add_callback(move |mut graphics, physics, events, _| {
|
testbed.add_callback(move |mut graphics, physics, events, _| {
|
||||||
while let Ok(prox) = events.events.try_recv() {
|
while let Ok(prox) = events.collision_events.try_recv() {
|
||||||
let color = if prox.started() {
|
let color = if prox.started() {
|
||||||
[1.0, 1.0, 0.0]
|
[1.0, 1.0, 0.0]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
|||||||
|
|
||||||
// Callback that will be executed on the main loop to handle proximities.
|
// Callback that will be executed on the main loop to handle proximities.
|
||||||
testbed.add_callback(move |mut graphics, physics, events, _| {
|
testbed.add_callback(move |mut graphics, physics, events, _| {
|
||||||
while let Ok(prox) = events.events.try_recv() {
|
while let Ok(prox) = events.collision_events.try_recv() {
|
||||||
let color = if prox.started() {
|
let color = if prox.started() {
|
||||||
[1.0, 1.0, 0.0]
|
[1.0, 1.0, 0.0]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
|||||||
|
|
||||||
// Callback that will be executed on the main loop to handle proximities.
|
// Callback that will be executed on the main loop to handle proximities.
|
||||||
testbed.add_callback(move |mut graphics, physics, events, _| {
|
testbed.add_callback(move |mut graphics, physics, events, _| {
|
||||||
while let Ok(prox) = events.events.try_recv() {
|
while let Ok(prox) = events.collision_events.try_recv() {
|
||||||
let color = if prox.started() {
|
let color = if prox.started() {
|
||||||
[1.0, 1.0, 0.0]
|
[1.0, 1.0, 0.0]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user