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}');
});
Constructors
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