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 TypeMethodDescriptionvoid
addGamePieceAfterTouchGround
(SimulatedArena simulatedArena) Adds aGamePieceOnFieldSimulation
to aSimulatedArena
to 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:GamePieceProjectile
Adds a
GamePieceOnFieldSimulation
to aSimulatedArena
to Simulate the Game Piece After Touch-Ground.The added
GamePieceOnFieldSimulation
will 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
GamePieceOnFieldSimulation
will always have collision space on the field, even before touching the ground.- Overrides:
addGamePieceAfterTouchGround
in classGamePieceProjectile
- Parameters:
simulatedArena
- the arena simulation to which the game piece will be added, usually obtained fromSimulatedArena.getInstance()
-