CollisionEnter3DEvent class

Two entities' bodies started touching. Fired on the world's event bus by PhysicsSystem3D after the step:

world.events.on<CollisionEnter3DEvent>((e) {
  print('${e.entityA.name} hit ${e.entityB.name}');
});
Inheritance

Constructors

CollisionEnter3DEvent({required Entity entityA, required Entity entityB, required Vector3 point, required Vector3 normal, double depth = 0})
entityA touched entityB at point.

Properties

depth → double
How far they overlap.
final
entityA → Entity
One entity.
final
entityB → Entity
The other.
final
hashCode → int
The hash code for this object.
no setterinherited
normal → Vector3
From A towards B.
final
point → Vector3
Where they touch, in metres.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited