java.lang.Object
org.ironmaple.simulation.Goal
org.ironmaple.simulation.seasonspecific.rebuilt2026.RebuiltHub
All Implemented Interfaces:
SimulatedArena.Simulatable

public class RebuiltHub extends Goal

Simulates a HUBs on the field.

This class simulates the HUBs on the field where FUELs can be scored. Whether it is active can be determined by using Arena2026Rebuilt.isActive(boolean)

  • Field Details

    • blueHubPose

      protected static final Translation3d blueHubPose
    • redHubPose

      protected static final Translation3d redHubPose
    • blueShootPoses

      protected static final Pose3d[] blueShootPoses
    • GoalRadius

      public static final double GoalRadius
      See Also:
    • redShootPoses

      public static final Pose3d[] redShootPoses
    • arena

      protected final Arena2026Rebuilt arena
  • Constructor Details

    • RebuiltHub

      public RebuiltHub(Arena2026Rebuilt arena, boolean isBlue)

      Creates an HUB of the specified color.

      Parameters:
      arena - The host arena of this HUB.
      isBlue - Wether this is the blue HUB or the red one.
  • Method Details

    • checkCollision

      protected boolean checkCollision(GamePiece GamePiece)
      Description copied from class: Goal

      Sets a Custom Position Checker for This Goal

      Replaces the default box collision with a custom shape check. This allows for cylindrical, spherical, or other complex collision zones beyond axis-aligned boxes.

      Overrides:
      checkCollision in class Goal
      Returns:
      this Goal instance for method chaining
    • addPoints

      protected void addPoints()
      Description copied from class: Goal

      Adds Points When a Piece Has Been Successfully Scored in This Goal

      Since this function is the only trigger called when a piece is scored it may handle other small things outside of adding points.

      Specified by:
      addPoints in class Goal
    • draw

      public void draw(List<Pose3d> drawList)
      Description copied from class: Goal

      Displays Game Pieces to AdvantageScope if Applicable

      Specified by:
      draw in class Goal
      Parameters:
      drawList - a list of Pose3d objects used to visualize the positions of the game pieces on AdvantageScope