pub type OnCollisionStart = CollisionStart;
👎Deprecated since 0.4.0: Renamed to
CollisionStart
Expand description
A deprecated alias for CollisionStart
.
Aliased Type§
pub struct OnCollisionStart {
pub collider1: Entity,
pub collider2: Entity,
pub body1: Option<Entity>,
pub body2: Option<Entity>,
}
Fields§
§collider1: Entity
The entity of the collider that started colliding with collider2
.
For observers watching this event as an EntityEvent
, this is the target entity.
collider2: Entity
The entity of the collider that started 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
.