Class ReefscapeCoralOnFly
java.lang.Object
org.ironmaple.simulation.gamepieces.GamePieceProjectile
org.ironmaple.simulation.seasonspecific.reefscape2025.ReefscapeCoralOnFly
-
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.Methods inherited from class org.ironmaple.simulation.gamepieces.GamePieceProjectile
cleanUp, disableBecomesGamePieceOnFieldAfterTouchGround, enableBecomesGamePieceOnFieldAfterTouchGround, getPose3d, getPositionAtTime, getVelocity3dMPS, hasGoneOutOfField, hasHitGround, hasHitTarget, launch, 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
-
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()
-