world library
The world around the part a game simulates: Daylight, the hour of the day with its sun, moon and physical sky, and Horizon, the ground and a level surface going on from the simulated square's edge out to the horizon.
A library, not a plugin: a game moves the day and adds the horizon where
it builds its scene, and nothing here registers with the engine. The
water of flutter3d_effects is lit by the day with lightWater, from
flutter3d_game_physics' elements.dart.
Classes
- Daylight
- The hour of a world's day, and everything that follows from it: where the sun is, what light it and the moon give, and the sky they are seen through.
- Horizon
- The world past the part of it that is simulated, out to the horizon: the ground going on from the simulated square's edge and falling away to a far depth, and a level surface going on over it, so whoever stands at the edge sees the world fade into the distance rather than end.
Typedefs
- GroundHeight = double Function(double x, double z)
-
The height of a world's drawn ground at
(x, z), m.