Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Feb 17, 2024
1 parent 883a827 commit e355d07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/bevy_xpbd_2d/examples/custom_collider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,19 @@ impl AnyCollider for CircleCollider {
let point2 = normal2 * other.radius;

vec![ContactManifold {
index: 0,
normal1,
normal2,
contacts: vec![ContactData {
index: 0,
point1,
point2,
normal1,
normal2,
penetration: sum_radius - distance_squared.sqrt(),
// Impulses are computed by the constraint solver
normal_impulse: 0.0,
tangent_impulse: 0.0,
}],
}]
} else {
Expand Down

0 comments on commit e355d07

Please sign in to comment.