Class ReefscapeAlgaeOnFly
java.lang.Object
org.ironmaple.simulation.gamepieces.GamePieceProjectile
org.ironmaple.simulation.seasonspecific.reefscape2025.ReefscapeAlgaeOnFly
- All Implemented Interfaces:
GamePiece
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
Methods inherited from class org.ironmaple.simulation.gamepieces.GamePieceProjectile
addGamePieceAfterTouchGround, cleanUp, disableBecomesGamePieceOnFieldAfterTouchGround, enableBecomesGamePieceOnFieldAfterTouchGround, getPose3d, getPositionAtTime, getType, getVelocity3dMPS, hasGoneOutOfField, hasHitGround, hasHitTarget, isGrounded, launch, setHitTargetCallBack, triggerHitTargeCallBack, 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)
-