JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
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
13 properties.mass_kg = 0.216;
14 properties.radius_m = 0.075;
15 properties.drag_coefficient = 0.35;
16 properties.reference_area_m2 = 3.14159265358979323846 * properties.radius_m * properties.radius_m;
17 properties.restitution = 0.30;
18 return properties;
19}
20
23 config.rolling_friction_per_s = 2.0;
24 config.min_bounce_speed_mps = 0.03;
25 return config;
26}
27
30 properties.mass_kg = 0.24;
31 properties.radius_m = 0.09;
32 properties.drag_coefficient = 0.50;
33 properties.reference_area_m2 = 3.14159265358979323846 * properties.radius_m * properties.radius_m;
34 properties.restitution = 0.48;
35 return properties;
36}
37
40 config.gravity_mps2 = Vector3(0.0, 0.0, -9.81);
41 config.air_density_kgpm3 = 1.225;
42 config.magnus_coefficient = 1.0e-4;
43 config.ground_height_m = 0.0;
44 config.rolling_friction_per_s = 1.5;
45 config.min_bounce_speed_mps = 0.06;
46 return config;
47}
48
51 config.min_corner_m = Vector3(0.0, 0.0, 0.0);
52 config.max_corner_m = Vector3(16.54, 8.21, 3.0);
53 config.wall_restitution = 0.25;
54 config.wall_friction = 0.2;
55 return config;
56}
57
58} // namespace frcsim::BallGamepiecePresets
Definition season_2026_gamepiece_presets.hpp:9
BallPhysicsSim3D::BallProperties fuelProperties()
Definition gamepiece_presets.hpp:11
BallPhysicsSim3D::BallProperties evergreenBallProperties()
Definition gamepiece_presets.hpp:28
BallGamepieceSim::FieldConfig evergreenFieldConfig()
Definition gamepiece_presets.hpp:49
BallPhysicsSim3D::Config fuelConfig()
Definition gamepiece_presets.hpp:21
BallPhysicsSim3D::Config evergreenBallConfig()
Definition gamepiece_presets.hpp:38
Global field and contact tuning parameters.
Definition ball_gamepiece_sim.hpp:55
Vector3 min_corner_m
Definition ball_gamepiece_sim.hpp:57
double wall_friction
Definition ball_gamepiece_sim.hpp:69
Vector3 max_corner_m
Definition ball_gamepiece_sim.hpp:59
double wall_restitution
Definition ball_gamepiece_sim.hpp:61
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 air_density_kgpm3
Definition ball_physics.hpp:31
double min_bounce_speed_mps
Definition ball_physics.hpp:43
Vector3 gravity_mps2
Definition ball_physics.hpp:27
double ground_height_m
Definition ball_physics.hpp:39
double magnus_coefficient
Definition ball_physics.hpp:35
3D vector utility used throughout JSim physics.
Definition vector.hpp:22