Class ReefscapeCoralAlgaeStack
java.lang.Object
org.dyn4j.collision.AbstractCollisionBody<org.dyn4j.dynamics.BodyFixture>
org.dyn4j.dynamics.AbstractPhysicsBody
org.dyn4j.dynamics.Body
org.ironmaple.simulation.gamepieces.GamePieceOnFieldSimulation
org.ironmaple.simulation.seasonspecific.reefscape2025.ReefscapeCoralAlgaeStack
- All Implemented Interfaces:
org.dyn4j.collision.CollisionBody<org.dyn4j.dynamics.BodyFixture>,org.dyn4j.DataContainer,org.dyn4j.dynamics.PhysicsBody,org.dyn4j.geometry.Rotatable,org.dyn4j.geometry.Shiftable,org.dyn4j.geometry.Transformable,org.dyn4j.geometry.Translatable,org.dyn4j.Ownable
A CORAL-ALGAE stack on the field.
This class represents a CORAL-ALGAE stack, which consists of a standing CORAL with an ALGAE placed on top of it.
Three such stacks are staged on each side of the field before the match begins.
The stacks will collapse if hit, separating into a ReefscapeCoralOnField and a
ReefscapeAlgaeOnField.
Intakes can also grab a Coral and/or an Algae from the stack.
To visualize these stacks, use getStackedAlgaePoses() and getStackedCoralPoses() to retrieve the
positions of the coral and algae in the stacks, and display them through AScope.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ironmaple.simulation.gamepieces.GamePieceOnFieldSimulation
GamePieceOnFieldSimulation.GamePieceInfo -
Field Summary
FieldsFields inherited from class org.ironmaple.simulation.gamepieces.GamePieceOnFieldSimulation
COEFFICIENT_OF_FRICTION, MINIMUM_BOUNCING_VELOCITY, typeFields inherited from class org.dyn4j.dynamics.AbstractPhysicsBody
angularDamping, angularVelocity, atRest, atRestDetectionEnabled, atRestTime, bullet, force, forces, gravityScale, linearDamping, linearVelocity, mass, torque, torquesFields inherited from class org.dyn4j.collision.AbstractCollisionBody
enabled, fixtureModificationHandler, fixtures, fixturesUnmodifiable, owner, radius, transform, transform0, userDataFields inherited from interface org.dyn4j.collision.CollisionBody
TYPICAL_FIXTURE_COUNTFields inherited from interface org.dyn4j.dynamics.PhysicsBody
DEFAULT_ANGULAR_DAMPING, DEFAULT_LINEAR_DAMPING -
Constructor Summary
ConstructorsConstructorDescriptionReefscapeCoralAlgaeStack(Translation2d initialPosition) ReefscapeCoralAlgaeStack(Translation2d initialPosition, SimulatedArena arena) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the positions of the Algae pieces in all stacks.Retrieves the positions of the Coral pieces in all stacks.voidMethods inherited from class org.ironmaple.simulation.gamepieces.GamePieceOnFieldSimulation
getPose3d, getPoseOnField, setVelocityMethods inherited from class org.dyn4j.dynamics.AbstractPhysicsBody
accumulate, addFixture, addFixture, addFixture, applyForce, applyForce, applyForce, applyImpulse, applyImpulse, applyImpulse, applyTorque, applyTorque, clearAccumulatedForce, clearAccumulatedTorque, clearForce, clearTorque, computeSweptAABB, computeSweptAABB, createSweptAABB, createSweptAABB, getAccumulatedForce, getAccumulatedTorque, getAngularDamping, getAngularVelocity, getChangeInOrientation, getChangeInPosition, getForce, getGravityScale, getLinearDamping, getLinearVelocity, getLinearVelocity, getLocalCenter, getMass, getTorque, getWorldCenter, integratePosition, integrateVelocity, isAtRest, isAtRestDetectionEnabled, isBullet, isDynamic, isKinematic, isStatic, removeAllFixtures, removeFixture, removeFixture, removeFixture, removeFixtures, setAngularDamping, setAngularVelocity, setAtRest, setAtRestDetectionEnabled, setBullet, setEnabled, setGravityScale, setLinearDamping, setLinearVelocity, setLinearVelocity, setMass, setMass, setMassType, toString, updateAtRestTime, updateMassMethods inherited from class org.dyn4j.collision.AbstractCollisionBody
addFixture, computeAABB, computeAABB, contains, containsFixture, createAABB, createAABB, getFixture, getFixture, getFixtureCount, getFixtureIterator, getFixtureModificationHandler, getFixtures, getFixtures, getLocalPoint, getLocalVector, getOwner, getPreviousTransform, getRotationDiscRadius, getTransform, getUserData, getWorldPoint, getWorldVector, isEnabled, rotate, rotate, rotate, rotate, rotate, rotate, rotateAboutCenter, setFixtureModificationHandler, setOwner, setRotationDiscRadius, setTransform, setUserData, shift, translate, translate, translateToOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.dyn4j.collision.CollisionBody
addFixture, addFixture, computeAABB, computeAABB, contains, containsFixture, createAABB, createAABB, getFixture, getFixture, getFixtureCount, getFixtureIterator, getFixtureModificationHandler, getFixtures, getFixtures, getLocalCenter, getLocalPoint, getLocalVector, getPreviousTransform, getRotationDiscRadius, getTransform, getWorldCenter, getWorldPoint, getWorldVector, isEnabled, removeAllFixtures, removeFixture, removeFixture, removeFixture, removeFixtures, rotateAboutCenter, setEnabled, setFixtureModificationHandler, setTransform, translateToOriginMethods inherited from interface org.dyn4j.DataContainer
getUserData, setUserDataMethods inherited from interface org.dyn4j.Ownable
getOwner, setOwnerMethods inherited from interface org.dyn4j.dynamics.PhysicsBody
addFixture, addFixture, applyForce, applyForce, applyForce, applyImpulse, applyImpulse, applyImpulse, applyTorque, applyTorque, clearAccumulatedForce, clearAccumulatedTorque, clearForce, clearTorque, computeSweptAABB, computeSweptAABB, createSweptAABB, createSweptAABB, getAccumulatedForce, getAccumulatedTorque, getAngularDamping, getAngularVelocity, getChangeInOrientation, getChangeInPosition, getForce, getGravityScale, getLinearDamping, getLinearVelocity, getLinearVelocity, getMass, getTorque, integratePosition, integrateVelocity, isAtRest, isAtRestDetectionEnabled, isBullet, isDynamic, isKinematic, isStatic, setAngularDamping, setAngularVelocity, setAtRest, setAtRestDetectionEnabled, setBullet, setGravityScale, setLinearDamping, setLinearVelocity, setLinearVelocity, setMass, setMass, setMassType, updateAtRestTime, updateMassMethods inherited from interface org.dyn4j.geometry.Rotatable
rotate, rotate, rotate, rotate, rotate, rotateMethods inherited from interface org.dyn4j.geometry.Shiftable
shiftMethods inherited from interface org.dyn4j.geometry.Translatable
translate, translate
-
Field Details
-
REEFSCAPE_STACK_INFO
-
-
Constructor Details
-
ReefscapeCoralAlgaeStack
-
ReefscapeCoralAlgaeStack
-
-
Method Details
-
getStackedCoralPoses
Retrieves the positions of the Coral pieces in all stacks.
- Returns:
- list of
Pose3drepresenting the positions of the Coral pieces in all stacks in the arena
-
getStackedCoralPoses
-
getStackedAlgaePoses
Retrieves the positions of the Algae pieces in all stacks.
- Returns:
- a list of
Pose3drepresenting the positions of the Algae pieces in all stacks in the arena
-
getStackedAlgaePoses
- See Also:
-
onIntake
- Overrides:
onIntakein classGamePieceOnFieldSimulation
-