BonfireWithCollision constructor
BonfireWithCollision({
- required BuildContext context,
- required GameMap map,
- required BonfireCollisionConfigDefault configDefault,
- List<
PlayerController> ? playerControllers, - Player? player,
- GameInterface? interface,
- List<
GameComponent> ? components, - List<
GameComponent> ? hudComponents, - GameBackground? background,
- bool debugMode = false,
- bool showCollisionArea = false,
- Color? collisionAreaColor,
- Color? lightingColorGame,
- ValueChanged<
BonfireGame> ? onReady, - Color? backgroundColor,
- GameColorFilter? colorFilter,
- CameraConfig? cameraConfig,
- List<
Force2D> ? globalForces,
Implementation
BonfireWithCollision({
required super.context,
required super.map,
required this.configDefault,
super.playerControllers,
super.player,
super.interface,
super.components,
super.hudComponents,
super.background,
super.debugMode = false,
super.showCollisionArea = false,
super.collisionAreaColor,
super.lightingColorGame,
super.onReady,
super.backgroundColor,
super.colorFilter,
super.cameraConfig,
super.globalForces,
}) {
if (configDefault.customBroadPhase != null) {
collisionDetection = StandardCollisionDetection(
broadphase: configDefault.customBroadPhase,
);
}
}