|
JSim 2026.06.01-p(1)
|
In-flight entity not currently represented by BallPhysicsSim3D. More...
#include <ball_gamepiece_sim.hpp>
Public Attributes | |
| GamePieceType | type {GamePieceType::kBall} |
| Vector3 | position_m {} |
| Vector3 | velocity_mps {} |
| Vector3 | spin_radps {} |
| double | gravity_mps2 {9.81} |
| double | age_s {0.0} |
| bool | active {true} |
| bool | spawn_on_ground_after_touch {true} |
| bool | hit_target {false} |
| std::function< void()> | hit_target_callback {} |
In-flight entity not currently represented by BallPhysicsSim3D.
| bool frcsim::BallGamepieceSim::ProjectileEntity::active {true} |
False when projectile is retired from simulation.
| double frcsim::BallGamepieceSim::ProjectileEntity::age_s {0.0} |
Accumulated projectile age in seconds.
| double frcsim::BallGamepieceSim::ProjectileEntity::gravity_mps2 {9.81} |
Downward gravity magnitude used by this projectile.
| bool frcsim::BallGamepieceSim::ProjectileEntity::hit_target {false} |
Set true when a goal hit is detected.
| std::function<void()> frcsim::BallGamepieceSim::ProjectileEntity::hit_target_callback {} |
Optional callback invoked when the projectile hits a goal.
| Vector3 frcsim::BallGamepieceSim::ProjectileEntity::position_m {} |
Current projectile position in world coordinates.
| bool frcsim::BallGamepieceSim::ProjectileEntity::spawn_on_ground_after_touch {true} |
If true, touchdown spawns a grounded ball entity.
| Vector3 frcsim::BallGamepieceSim::ProjectileEntity::spin_radps {} |
Projectile spin in world frame.
| GamePieceType frcsim::BallGamepieceSim::ProjectileEntity::type {GamePieceType::kBall} |
Type for acceptance checks and spawn behavior.
| Vector3 frcsim::BallGamepieceSim::ProjectileEntity::velocity_mps {} |
Current projectile velocity in world frame.