onMount method

  1. @override
void onMount()
override

Called when the owning node enters a live scene graph.

Implementation

@override
void onMount() {
  final world = findAncestorWorld(node);
  if (world == null) return;
  _world = world;
  world.registerCollider(this);
}