pub type OnCollisionEnd = CollisionEnd;👎Deprecated since 0.4.0: Renamed to
CollisionEndExpand description
A deprecated alias for CollisionEnd.
Aliased Type§
pub struct OnCollisionEnd {
pub collider1: Entity,
pub collider2: Entity,
pub body1: Option<Entity>,
pub body2: Option<Entity>,
}Fields§
§collider1: EntityThe entity of the collider that stopped colliding with collider2.
For observers watching this event as an EntityEvent, this is the target entity.
collider2: EntityThe entity of the collider that stopped colliding with collider1.
body1: Option<Entity>The rigid body that collider1 is attached to.
If the collider is not attached to a rigid body, this will be None.
body2: Option<Entity>The rigid body that collider2 is attached to.
If the collider is not attached to a rigid body, this will be None.