You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function collision event is detecting correctly the collisions among sensors.
But for some unknown reason it doesn't "fill up" the CollidingEntities component.
Sample codes:
fn display_events(
mut collision_events: EventReader<CollisionEvent>,
mut contact_force_events: EventReader<ContactForceEvent>,
) {
for collision_event in collision_events.read() {
println!("Received collision event: {:?}", collision_event);
}
for contact_force_event in contact_force_events.read() {
println!("Received contact force event: {:?}", contact_force_event);
}
}
pub fn detect_hits(
colliding: Query<&CollidingEntities>,
){
for p in colliding.iter(){
for i in p.iter(){
println!("{:?}",i);
}
}
}
The text was updated successfully, but these errors were encountered:
Sirmadeira
changed the title
CollidingEnitites component, doesnt seen to work with sensors.
CollidingEntities component, doesnt seen to work with sensors.
Jun 21, 2024
Did you add the ColllidingEntities component manually to the Player? Because I just switched from avian to rapier, and I found out that avian automatically add ColllidingEntities for you, but in rapier you need to add the component by yourself.
Hello, so this specific component. Is broken
https://docs.rs/bevy_rapier3d/latest/bevy_rapier3d/geometry/struct.CollidingEntities.html
Doesnt seen to be working as expected . As you can see in the video below
Gravação de tela de 21-06-2024 14:42:43.webm
The function collision event is detecting correctly the collisions among sensors.
But for some unknown reason it doesn't "fill up" the CollidingEntities component.
Sample codes:
The text was updated successfully, but these errors were encountered: