Merge pull request #636 from waywardmonkeys/fix-spelling-in-variable
Fix typo in internal variable name.
This commit is contained in:
@@ -58,14 +58,14 @@ pub struct IntersectionPair {
|
|||||||
/// Are the colliders intersecting?
|
/// Are the colliders intersecting?
|
||||||
pub intersecting: bool,
|
pub intersecting: bool,
|
||||||
/// Was a `CollisionEvent::Started` emitted for this collider?
|
/// Was a `CollisionEvent::Started` emitted for this collider?
|
||||||
pub(crate) start_event_emited: bool,
|
pub(crate) start_event_emitted: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IntersectionPair {
|
impl IntersectionPair {
|
||||||
pub(crate) fn new() -> Self {
|
pub(crate) fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
intersecting: false,
|
intersecting: false,
|
||||||
start_event_emited: false,
|
start_event_emitted: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ impl IntersectionPair {
|
|||||||
collider2: ColliderHandle,
|
collider2: ColliderHandle,
|
||||||
events: &dyn EventHandler,
|
events: &dyn EventHandler,
|
||||||
) {
|
) {
|
||||||
self.start_event_emited = true;
|
self.start_event_emitted = true;
|
||||||
events.handle_collision_event(
|
events.handle_collision_event(
|
||||||
bodies,
|
bodies,
|
||||||
colliders,
|
colliders,
|
||||||
@@ -94,7 +94,7 @@ impl IntersectionPair {
|
|||||||
collider2: ColliderHandle,
|
collider2: ColliderHandle,
|
||||||
events: &dyn EventHandler,
|
events: &dyn EventHandler,
|
||||||
) {
|
) {
|
||||||
self.start_event_emited = false;
|
self.start_event_emitted = false;
|
||||||
events.handle_collision_event(
|
events.handle_collision_event(
|
||||||
bodies,
|
bodies,
|
||||||
colliders,
|
colliders,
|
||||||
@@ -122,7 +122,7 @@ pub struct ContactPair {
|
|||||||
/// Is there any active contact in this contact pair?
|
/// Is there any active contact in this contact pair?
|
||||||
pub has_any_active_contact: bool,
|
pub has_any_active_contact: bool,
|
||||||
/// Was a `CollisionEvent::Started` emitted for this collider?
|
/// Was a `CollisionEvent::Started` emitted for this collider?
|
||||||
pub(crate) start_event_emited: bool,
|
pub(crate) start_event_emitted: bool,
|
||||||
pub(crate) workspace: Option<ContactManifoldsWorkspace>,
|
pub(crate) workspace: Option<ContactManifoldsWorkspace>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ impl ContactPair {
|
|||||||
collider2,
|
collider2,
|
||||||
has_any_active_contact: false,
|
has_any_active_contact: false,
|
||||||
manifolds: Vec::new(),
|
manifolds: Vec::new(),
|
||||||
start_event_emited: false,
|
start_event_emitted: false,
|
||||||
workspace: None,
|
workspace: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -210,7 +210,7 @@ impl ContactPair {
|
|||||||
colliders: &ColliderSet,
|
colliders: &ColliderSet,
|
||||||
events: &dyn EventHandler,
|
events: &dyn EventHandler,
|
||||||
) {
|
) {
|
||||||
self.start_event_emited = true;
|
self.start_event_emitted = true;
|
||||||
|
|
||||||
events.handle_collision_event(
|
events.handle_collision_event(
|
||||||
bodies,
|
bodies,
|
||||||
@@ -226,7 +226,7 @@ impl ContactPair {
|
|||||||
colliders: &ColliderSet,
|
colliders: &ColliderSet,
|
||||||
events: &dyn EventHandler,
|
events: &dyn EventHandler,
|
||||||
) {
|
) {
|
||||||
self.start_event_emited = false;
|
self.start_event_emitted = false;
|
||||||
|
|
||||||
events.handle_collision_event(
|
events.handle_collision_event(
|
||||||
bodies,
|
bodies,
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ impl NarrowPhase {
|
|||||||
islands.wake_up(bodies, parent.handle, true)
|
islands.wake_up(bodies, parent.handle, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
if pair.start_event_emited {
|
if pair.start_event_emitted {
|
||||||
events.handle_collision_event(
|
events.handle_collision_event(
|
||||||
bodies,
|
bodies,
|
||||||
colliders,
|
colliders,
|
||||||
@@ -355,7 +355,7 @@ impl NarrowPhase {
|
|||||||
} else {
|
} else {
|
||||||
// If there is no island, don’t wake-up bodies, but do send the Stopped collision event.
|
// If there is no island, don’t wake-up bodies, but do send the Stopped collision event.
|
||||||
for (a, b, pair) in self.contact_graph.interactions_with(contact_graph_id) {
|
for (a, b, pair) in self.contact_graph.interactions_with(contact_graph_id) {
|
||||||
if pair.start_event_emited {
|
if pair.start_event_emitted {
|
||||||
events.handle_collision_event(
|
events.handle_collision_event(
|
||||||
bodies,
|
bodies,
|
||||||
colliders,
|
colliders,
|
||||||
@@ -371,7 +371,7 @@ impl NarrowPhase {
|
|||||||
.intersection_graph
|
.intersection_graph
|
||||||
.interactions_with(intersection_graph_id)
|
.interactions_with(intersection_graph_id)
|
||||||
{
|
{
|
||||||
if pair.start_event_emited {
|
if pair.start_event_emitted {
|
||||||
events.handle_collision_event(
|
events.handle_collision_event(
|
||||||
bodies,
|
bodies,
|
||||||
colliders,
|
colliders,
|
||||||
|
|||||||
Reference in New Issue
Block a user