taps.apps.configs.physics¶
PhysicsConfig
¶
Bases: AppConfig
Physics application configuration.
Parameters:
-
name
(Literal[str]
, default:'physics'
) –Application name.
-
simulations
(int
) –Number of parallel simulations.
-
ball_diameter
(float
, default:0.2
) –Golf ball diameter in meters.
-
ball_mass
(float
, default:0.05
) –Golf ball mass in kilograms.
-
tick_rate
(int
, default:240
) –Simulation steps per seconds.
-
total_time
(int
, default:10
) –Simulation runtime in seconds.
-
real_time
(bool
, default:True
) –Simulate at real time.
-
seed
(int | None
, default:None
) –Random seed.
-
terrain_width
(int
, default:20
) –Terrain width/length in meters.
-
terrain_height
(int
, default:3
) –Terrain max height in meters.
-
terrain_resolution
(int
, default:10
) –Terrain vertices per meter.
-
terrain_scale
(float
, default:10.0
) –Noise map scale (how far away map is viewed from).
-
terrain_octaves
(int
, default:3
) –Detail level in noise map.
-
terrain_persistence
(float
, default:0.2
) –Octave contributions (amplitude).
-
terrain_lacunarity
(float
, default:2.0
) –Detail added/removed at each octave (frequency).
-
terrain_filter_size
(int
, default:2
) –Terrain smoothing filter size.
get_app
¶
get_app() -> App
Create an application instance from the config.