|
JSim 2026.06.01-p(1)
|
Goal capture region and validation logic. More...
#include <ball_gamepiece_sim.hpp>
Public Types | |
| enum class | Shape { kBox , kSphere } |
| Supported built-in goal geometries. More... | |
Public Attributes | |
| Shape | shape {Shape::kBox} |
| Vector3 | center_m {} |
| Vector3 | half_extents_m {0.2, 0.2, 0.2} |
| double | radius_m {0.25} |
| GamePieceType | accepted_type {GamePieceType::kBall} |
| bool | accept_any_type {false} |
| bool | require_positive_vertical_velocity {false} |
| std::function< bool(const Vector3 &)> | custom_velocity_validator {} |
Goal capture region and validation logic.
|
strong |
| bool frcsim::BallGamepieceSim::GoalZone::accept_any_type {false} |
When true, accepts all gamepiece types.
| GamePieceType frcsim::BallGamepieceSim::GoalZone::accepted_type {GamePieceType::kBall} |
Accepted gamepiece type enum for score checks.
| Vector3 frcsim::BallGamepieceSim::GoalZone::center_m {} |
Zone center in world coordinates.
| std::function<bool(const Vector3&)> frcsim::BallGamepieceSim::GoalZone::custom_velocity_validator {} |
Optional velocity-rule override.
| Vector3 frcsim::BallGamepieceSim::GoalZone::half_extents_m {0.2, 0.2, 0.2} |
Half extents for box zones.
| double frcsim::BallGamepieceSim::GoalZone::radius_m {0.25} |
Radius for sphere zones.
| bool frcsim::BallGamepieceSim::GoalZone::require_positive_vertical_velocity {false} |
Requires upward velocity at score time when true.
| Shape frcsim::BallGamepieceSim::GoalZone::shape {Shape::kBox} |
Geometry mode for this zone.