|
JSim 2026.06.01-p(1)
|
Public Member Functions | |
| GamePieceState (GamePieceType type) | |
| GamePieceType | getType () |
| void | setVelocity (LinearVelocity3d velocity) |
| void | setRotation (Rotation3d rotation) |
| LinearVelocity3d | getVelocity () |
| Rotation3d | getRotation () |
| void | setRobotOffsetStart (Translation2d offset) |
| Translation2d | getRobotOffsetStart () |
| void | setExitVelocity (LinearVelocity3d velocity) |
| LinearVelocity3d | getExitVelocity () |
| void | setExitAngle (Rotation3d angle) |
| Rotation3d | getExitAngle () |
| void | intakeZone (Translation3d[] intakeArea) |
| Translation3d[] | getIntakeArea () |
Public Attributes | |
| GamePieceType | type |
| LinearVelocity3d | velocity |
| Rotation3d | rotation |
| Translation2d | robotOffsetStart |
| LinearVelocity3d | exitVelocity |
| Rotation3d | exitAngle |
| Translation3d[] | intakeArea |
Represents the state of a game piece in the simulation. Includes type, velocity, rotation, and other physical properties.
|
inline |
Creates a game piece state for the given type.
| type | game piece type |
|
inline |
Returns the exit angle.
|
inline |
Returns the exit velocity vector.
|
inline |
Returns the intake polygon area.
|
inline |
Returns the robot offset start.
|
inline |
Returns the rotation.
|
inline |
Returns the piece type.
|
inline |
Returns the linear velocity.
|
inline |
Sets the intake polygon area.
| intakeArea | intake polygon area |
|
inline |
Sets the exit angle.
| angle | exit angle |
|
inline |
Sets the exit velocity vector.
| velocity | exit velocity vector |
|
inline |
Sets the robot offset start.
| offset | starting offset in robot coordinates |
|
inline |
Sets the rotation.
| rotation | piece rotation |
|
inline |
Sets the linear velocity.
| velocity | linear exit velocity |
| Rotation3d jsim.api.GamePieceState.exitAngle |
Exit orientation.
| LinearVelocity3d jsim.api.GamePieceState.exitVelocity |
Exit velocity vector.
| Translation3d [] jsim.api.GamePieceState.intakeArea |
Intake polygon in robot space.
| Translation2d jsim.api.GamePieceState.robotOffsetStart |
Start offset in the robot frame.
| Rotation3d jsim.api.GamePieceState.rotation |
Orientation of the piece.
| GamePieceType jsim.api.GamePieceState.type |
Type of this game piece.
| LinearVelocity3d jsim.api.GamePieceState.velocity |
Linear exit velocity used by the current simulation API.