Class ReefscapeAlgaeOnFly
java.lang.Object
org.ironmaple.simulation.gamepieces.GamePieceProjectile
org.ironmaple.simulation.seasonspecific.reefscape2025.ReefscapeAlgaeOnFly
Represents an ALGAE launched into the air.
This class models a ReefscapeAlgaeOnField launched into the air.
The simulation will determine if the ALGAE hits its target—the NET.
The user can specify a callback using setHitNetCallBack(Runnable), which will be triggered when the ALGAE
hits the NET.
-
Field Summary
Fields inherited from class org.ironmaple.simulation.gamepieces.GamePieceProjectile
becomesGamePieceOnGroundAfterTouchGround, gamePieceRotation, gamePieceType, GRAVITY, info, initialHeight, initialLaunchingVelocityMPS, initialPosition, initialVerticalSpeedMPS, launchedTimer -
Constructor Summary
ConstructorsConstructorDescriptionReefscapeAlgaeOnFly(Translation2d robotPosition, Translation2d shooterPositionOnRobot, ChassisSpeeds chassisSpeeds, Rotation2d shooterFacing, Distance initialHeight, LinearVelocity launchingSpeed, Angle shooterAngle) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetHitNetCallBack(Runnable callBack) Specifies a callback for when any ALGAE launched into the air hits the NET.Methods inherited from class org.ironmaple.simulation.gamepieces.GamePieceProjectile
addGamePieceAfterTouchGround, cleanUp, disableBecomesGamePieceOnFieldAfterTouchGround, enableBecomesGamePieceOnFieldAfterTouchGround, getPose3d, getPositionAtTime, getVelocity3dMPS, hasGoneOutOfField, hasHitGround, hasHitTarget, launch, updateGamePieceProjectiles, willHitTarget, withHitTargetCallBack, withProjectileTrajectoryDisplayCallBack, withProjectileTrajectoryDisplayCallBack, withTargetPosition, withTargetTolerance, withTouchGroundHeight
-
Constructor Details
-
ReefscapeAlgaeOnFly
public ReefscapeAlgaeOnFly(Translation2d robotPosition, Translation2d shooterPositionOnRobot, ChassisSpeeds chassisSpeeds, Rotation2d shooterFacing, Distance initialHeight, LinearVelocity launchingSpeed, Angle shooterAngle)
-
-
Method Details
-
setHitNetCallBack
Specifies a callback for when any ALGAE launched into the air hits the NET.
- Parameters:
callBack- aRunnableto be invoked when an ALGAE hits the NET
-