Class ReefscapeCoralOnFly
java.lang.Object
org.ironmaple.simulation.gamepieces.GamePieceProjectile
org.ironmaple.simulation.seasonspecific.reefscape2025.ReefscapeCoralOnFly
- All Implemented Interfaces:
GamePiece
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.ironmaple.simulation.gamepieces.GamePieceProjectile
becomesGamePieceOnGroundAfterTouchGround, gamePieceRotation, gamePieceType, GRAVITY, info, initialHeight, initialLaunchingVelocityMPS, initialPosition, initialVerticalSpeedMPS, launchedTimer -
Constructor Summary
ConstructorsConstructorDescriptionReefscapeCoralOnFly(Translation2d robotPosition, Translation2d shooterPositionOnRobot, ChassisSpeeds chassisSpeeds, Rotation2d shooterFacing, Distance initialHeight, LinearVelocity launchingSpeed, Angle shooterAngle) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGamePieceAfterTouchGround(SimulatedArena simulatedArena) Adds aGamePieceOnFieldSimulationto aSimulatedArenato Simulate the Game Piece After Touch-Ground.static ReefscapeCoralOnFlyDropFromCoralStation(ReefscapeCoralOnFly.CoralStationsSide station, DriverStation.Alliance alliance, boolean isHorizontal) Methods inherited from class org.ironmaple.simulation.gamepieces.GamePieceProjectile
cleanUp, disableBecomesGamePieceOnFieldAfterTouchGround, enableBecomesGamePieceOnFieldAfterTouchGround, getPose3d, getPositionAtTime, getType, getVelocity3dMPS, hasGoneOutOfField, hasHitGround, hasHitTarget, isGrounded, launch, setHitTargetCallBack, triggerHitTargeCallBack, updateGamePieceProjectiles, willHitTarget, withHitTargetCallBack, withProjectileTrajectoryDisplayCallBack, withProjectileTrajectoryDisplayCallBack, withTargetPosition, withTargetTolerance, withTouchGroundHeight
-
Constructor Details
-
ReefscapeCoralOnFly
public ReefscapeCoralOnFly(Translation2d robotPosition, Translation2d shooterPositionOnRobot, ChassisSpeeds chassisSpeeds, Rotation2d shooterFacing, Distance initialHeight, LinearVelocity launchingSpeed, Angle shooterAngle)
-
-
Method Details
-
DropFromCoralStation
public static ReefscapeCoralOnFly DropFromCoralStation(ReefscapeCoralOnFly.CoralStationsSide station, DriverStation.Alliance alliance, boolean isHorizontal) -
addGamePieceAfterTouchGround
Description copied from class:GamePieceProjectileAdds a
GamePieceOnFieldSimulationto aSimulatedArenato Simulate the Game Piece After Touch-Ground.The added
GamePieceOnFieldSimulationwill have the initial velocity of the game piece projectile.The game piece will start falling from mid-air until it touches the ground.
The added
GamePieceOnFieldSimulationwill always have collision space on the field, even before touching the ground.- Overrides:
addGamePieceAfterTouchGroundin classGamePieceProjectile- Parameters:
simulatedArena- the arena simulation to which the game piece will be added, usually obtained fromSimulatedArena.getInstance()
-