|
JSim 2026.06.01-p(1)
|
Global field and contact tuning parameters. More...
#include <ball_gamepiece_sim.hpp>
Global field and contact tuning parameters.
| double frcsim::BallGamepieceSim::FieldConfig::ball_ball_contact_friction {0.2} |
Friction used for grounded ball-ball collision impulse.
| double frcsim::BallGamepieceSim::FieldConfig::ball_ball_contact_restitution {0.45} |
Restitution used for grounded ball-ball collision impulse.
| double frcsim::BallGamepieceSim::FieldConfig::ball_ball_restitution_min_scale {0.55} |
Minimum fraction of base restitution retained at very high speeds.
| double frcsim::BallGamepieceSim::FieldConfig::ball_ball_restitution_reference_speed_mps {3.0} |
Reference impact speed for velocity-dependent ball-ball restitution.
| double frcsim::BallGamepieceSim::FieldConfig::ball_ball_restitution_speed_exponent {0.15} |
Exponent used when scaling restitution above reference impact speed.
| double frcsim::BallGamepieceSim::FieldConfig::ball_ball_spin_transfer_gain {0.18} |
Fraction of tangential collision impulse converted into ball spin.
| double frcsim::BallGamepieceSim::FieldConfig::baumgarte_beta {0.2} |
Baumgarte stabilization factor used to reduce penetration.
| double frcsim::BallGamepieceSim::FieldConfig::baumgarte_slop_m {0.005} |
Allowed penetration before stabilization is applied, in meters.
| bool frcsim::BallGamepieceSim::FieldConfig::ccd_enabled {true} |
Enables continuous collision checks for fast-moving balls.
| double frcsim::BallGamepieceSim::FieldConfig::ccd_speed_threshold_mps {10.0} |
Speed threshold above which CCD checks are evaluated, in meters per second.
| double frcsim::BallGamepieceSim::FieldConfig::free_ball_spin_decay_per_s {0.35} |
Exponential-like free spin decay applied while balls are not held.
| Vector3 frcsim::BallGamepieceSim::FieldConfig::max_corner_m {16.54, 8.21, 3.0} |
Maximum field corner in world coordinates.
| Vector3 frcsim::BallGamepieceSim::FieldConfig::min_corner_m {0.0, 0.0, 0.0} |
Minimum field corner in world coordinates.
| int frcsim::BallGamepieceSim::FieldConfig::net_boundary_user_id {-1} |
If >= 0, box boundaries with this user_id behave as net/catcher volumes.
| double frcsim::BallGamepieceSim::FieldConfig::net_downward_bias_mps2 {2.0} |
Additional downward acceleration bias for captured net balls.
| double frcsim::BallGamepieceSim::FieldConfig::net_entry_slack_scale {0.7} |
Effective slack around net box volumes when determining entry.
| double frcsim::BallGamepieceSim::FieldConfig::net_spin_decay {0.8} |
Spin decay multiplier applied while a ball is in a net volume.
| double frcsim::BallGamepieceSim::FieldConfig::net_velocity_decay {0.2} |
Planar velocity scale applied each step while a ball is in a net volume.
| double frcsim::BallGamepieceSim::FieldConfig::robot_ball_contact_friction {0.2} |
Friction used for robot-ball collision impulse.
| double frcsim::BallGamepieceSim::FieldConfig::robot_ball_contact_restitution {0.45} |
Restitution used for robot-ball collision impulse.
| double frcsim::BallGamepieceSim::FieldConfig::robot_ball_restitution_min_scale {0.55} |
Minimum fraction of robot-ball restitution retained at high speeds.
| double frcsim::BallGamepieceSim::FieldConfig::robot_ball_restitution_reference_speed_mps {3.0} |
Reference impact speed for velocity-dependent robot-ball restitution.
| double frcsim::BallGamepieceSim::FieldConfig::robot_ball_restitution_speed_exponent {0.15} |
Exponent used when scaling robot-ball restitution above reference speed.
| bool frcsim::BallGamepieceSim::FieldConfig::scoring_element_snapping_enabled {false} |
Enable automatic snapping of game elements to scoring zones when within snap_distance_m. Used for pick-and-place games or ball scoring where the element disappears and is added to a hub-like device, then teleported out X seconds later.
| int frcsim::BallGamepieceSim::FieldConfig::sleep_frame_threshold {12} |
Consecutive qualifying frames required before sleeping.
| double frcsim::BallGamepieceSim::FieldConfig::sleep_spin_threshold_radps {0.8} |
Maximum spin magnitude for sleep candidacy.
| double frcsim::BallGamepieceSim::FieldConfig::sleep_velocity_threshold_mps {0.05} |
Maximum linear speed for sleep candidacy.
| bool frcsim::BallGamepieceSim::FieldConfig::sleeping_enabled {true} |
Enables sleeping/wake logic for nearly resting balls.
| double frcsim::BallGamepieceSim::FieldConfig::snap_distance_m {0.1} |
Distance threshold for automatic snapping to scoring zones, in meters.
| int frcsim::BallGamepieceSim::FieldConfig::solver_iterations {4} |
Number of sequential-impulse iterations for contact solving.
| double frcsim::BallGamepieceSim::FieldConfig::wall_friction {0.2} |
Fractional tangential damping applied on wall contacts.
| double frcsim::BallGamepieceSim::FieldConfig::wall_restitution {0.25} |
Coefficient applied to wall-normal bounce response.
| double frcsim::BallGamepieceSim::FieldConfig::wall_restitution_min_scale {0.55} |
Minimum fraction of wall restitution retained at high impact speeds.
| double frcsim::BallGamepieceSim::FieldConfig::wall_restitution_reference_speed_mps {3.0} |
Reference impact speed for velocity-dependent wall restitution.
| double frcsim::BallGamepieceSim::FieldConfig::wall_restitution_speed_exponent {0.15} |
Exponent used when scaling wall restitution above reference speed.