JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
season_2025_gamepiece_presets.hpp
Go to the documentation of this file.
1// Copyright (c) JSim contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the LGPLv3 license file in the root directory of this project.
4
5#pragma once
6
8
10
11// Placeholder 2025 season presets. Tune values as appropriate for 2025 game.
14 config.net_boundary_user_id = 2025;
15 config.wall_restitution = 0.24;
16 config.wall_friction = 0.22;
17 return config;
18}
19
22 properties.mass_kg = 0.20;
23 properties.radius_m = 0.075;
24 properties.drag_coefficient = 0.45;
25 properties.reference_area_m2 = 3.14159265358979323846 * properties.radius_m * properties.radius_m;
26 properties.restitution = 0.46;
27 return properties;
28}
29
32 config.magnus_coefficient = 1.1e-4;
33 config.rolling_friction_per_s = 1.6;
34 return config;
35}
36
39 sim.fieldElements().clear();
40 sim.goals().clear();
41}
42
43} // namespace frcsim::BallGamepiecePresets
Resolves robot-ball contact response. projectiles.
Definition ball_gamepiece_sim.hpp:38
std::vector< EnvironmentalBoundary > & fieldElements()
Mutable field-element list.
Definition ball_gamepiece_sim.hpp:505
std::vector< GoalZone > & goals()
Mutable goal-zone list.
Definition ball_gamepiece_sim.hpp:499
void setFieldConfig(const FieldConfig &field)
Replaces field configuration while preserving dynamic simulation entities.
Definition ball_gamepiece_sim.hpp:277
Definition season_2026_gamepiece_presets.hpp:9
void configureSeason2025Field(BallGamepieceSim &sim)
Definition season_2025_gamepiece_presets.hpp:37
BallGamepieceSim::FieldConfig evergreenFieldConfig()
Definition gamepiece_presets.hpp:49
BallPhysicsSim3D::BallProperties season2025BallProperties()
Definition season_2025_gamepiece_presets.hpp:20
BallPhysicsSim3D::Config evergreenBallConfig()
Definition gamepiece_presets.hpp:38
BallPhysicsSim3D::Config season2025BallConfig()
Definition season_2025_gamepiece_presets.hpp:30
BallGamepieceSim::FieldConfig season2025FieldConfig()
Definition season_2025_gamepiece_presets.hpp:12
Global field and contact tuning parameters.
Definition ball_gamepiece_sim.hpp:55
double wall_friction
Definition ball_gamepiece_sim.hpp:69
double wall_restitution
Definition ball_gamepiece_sim.hpp:61
int net_boundary_user_id
Definition ball_gamepiece_sim.hpp:73
Physical parameters for the ball body.
Definition ball_physics.hpp:49
double drag_coefficient
Definition ball_physics.hpp:55
double restitution
Definition ball_physics.hpp:59
double mass_kg
Definition ball_physics.hpp:51
double reference_area_m2
Definition ball_physics.hpp:57
double radius_m
Definition ball_physics.hpp:53
Runtime physics environment parameters.
Definition ball_physics.hpp:25
double rolling_friction_per_s
Definition ball_physics.hpp:41
double magnus_coefficient
Definition ball_physics.hpp:35