PhysicalEntity<TGame extends LeapGame> constructor

PhysicalEntity<TGame extends LeapGame>({
  1. bool static = false,
  2. Iterable<Behavior<PhysicalEntity<LeapGame>>>? behaviors,
  3. int? priority,
  4. Vector2? position,
  5. Vector2? size,
})

Implementation

PhysicalEntity({
  this.static = false,
  Iterable<Behavior<PhysicalEntity>>? behaviors,
  super.priority,
  super.position,
  super.size,
}) : super(
        behaviors: _physicalBehaviors(
          static: static,
          extra: behaviors,
        ),
      );