Fix typo in internal variable name.

This commit is contained in:
Bruce Mitchener
2024-05-25 22:20:27 +07:00
parent 798406e00d
commit f13ca5cf1c
2 changed files with 11 additions and 11 deletions

View File

@@ -58,14 +58,14 @@ pub struct IntersectionPair {
/// Are the colliders intersecting?
pub intersecting: bool,
/// Was a `CollisionEvent::Started` emitted for this collider?
pub(crate) start_event_emited: bool,
pub(crate) start_event_emitted: bool,
}
impl IntersectionPair {
pub(crate) fn new() -> Self {
Self {
intersecting: false,
start_event_emited: false,
start_event_emitted: false,
}
}
@@ -77,7 +77,7 @@ impl IntersectionPair {
collider2: ColliderHandle,
events: &dyn EventHandler,
) {
self.start_event_emited = true;
self.start_event_emitted = true;
events.handle_collision_event(
bodies,
colliders,
@@ -94,7 +94,7 @@ impl IntersectionPair {
collider2: ColliderHandle,
events: &dyn EventHandler,
) {
self.start_event_emited = false;
self.start_event_emitted = false;
events.handle_collision_event(
bodies,
colliders,
@@ -122,7 +122,7 @@ pub struct ContactPair {
/// Is there any active contact in this contact pair?
pub has_any_active_contact: bool,
/// 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>,
}
@@ -133,7 +133,7 @@ impl ContactPair {
collider2,
has_any_active_contact: false,
manifolds: Vec::new(),
start_event_emited: false,
start_event_emitted: false,
workspace: None,
}
}
@@ -210,7 +210,7 @@ impl ContactPair {
colliders: &ColliderSet,
events: &dyn EventHandler,
) {
self.start_event_emited = true;
self.start_event_emitted = true;
events.handle_collision_event(
bodies,
@@ -226,7 +226,7 @@ impl ContactPair {
colliders: &ColliderSet,
events: &dyn EventHandler,
) {
self.start_event_emited = false;
self.start_event_emitted = false;
events.handle_collision_event(
bodies,

View File

@@ -343,7 +343,7 @@ impl NarrowPhase {
islands.wake_up(bodies, parent.handle, true)
}
if pair.start_event_emited {
if pair.start_event_emitted {
events.handle_collision_event(
bodies,
colliders,
@@ -355,7 +355,7 @@ impl NarrowPhase {
} else {
// If there is no island, dont wake-up bodies, but do send the Stopped collision event.
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(
bodies,
colliders,
@@ -371,7 +371,7 @@ impl NarrowPhase {
.intersection_graph
.interactions_with(intersection_graph_id)
{
if pair.start_event_emited {
if pair.start_event_emitted {
events.handle_collision_event(
bodies,
colliders,