[][src]Crate bigbang

Structs

Entity

An Entity is an object (generalized to be spherical, having only a radius dimension) which has velocity, position, radius, and mass. This gravitational tree contains many entities and it moves them around according to the gravity they exert on each other.

GravTree

Traits

AsEntity

The trait that enables a struct to be used inside of a node. It must be able to represent itself as an entity, i.e. provide positional and size information about itself, and it must be able to calculate gravity upon itself given another entity some distance away. In the future, I'd like to do that actual calculation in the tree and change this trait to just require that an entity can add some acceleration vector to itself.

Functions

from_data_file
new
time_step
write_data_file