flutter3d_fields 1.0.0-rc.1 copy "flutter3d_fields: ^1.0.0-rc.1" to clipboard
flutter3d_fields: ^1.0.0-rc.1 copied to clipboard

The contract for a 3D grid of quantities that the simulation, the renderer and audio share, and for a solver that declares what it reads and writes. Plain Dart.

1.0.0-rc.1 #

  • New: fields, as a contract of their own. A FieldDeclaration names a 3D grid of one quantity (a namespaced id, as a body's material state names one, in a Unit), its FieldGrid and FieldTransform in world positions, where its values are held (FieldResidence: host, buffer, texture3D, an open set), the one step that writes it and the steps that read it (FieldAccess on a FieldSide: simulation, frame, audio). HostField holds a host field's values in a Float32List, samples it between cells and is a snapshot part of its own. A field a device cannot hold is refused with FieldResidenceException and an open FieldRefusal.
  • New: subsystems. A solver registers as a Subsystem with its SubsystemDeclaration: id and version, the quantities and fields it reads and writes, its phase and place in the step, and the profiles that switch it on (switchedOnBy). SubsystemContext hands it the fields it declared, read-only where it only reads. FieldRegistry and SubsystemRegistry are what the engine implements and a plugin reaches through its host; the simulation's version is composed from the running subsystems (SimulationVersion.subsystems).
0
likes
140
points
55
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The contract for a 3D grid of quantities that the simulation, the renderer and audio share, and for a solver that declares what it reads and writes. Plain Dart.

Topics

#game-development #game-engine #simulation

License

MIT (license)

Dependencies

flutter3d_foundation, flutter3d_plugin_api

More

Packages that depend on flutter3d_fields