Crate linear_sim

Source
Expand description

§linear_sim

A minimal particle simulation.

§debug_dump feature

Set the environment variable LINEAR_SIM_DEBUG_DUMP=1 and before the step you want to capture, raise the collision::DEBUG_DUMP flag to true. This will write a binary serialization of the System state to linear-sim-<step>.dump in the local directory. In the course of development, some automatic triggers may be added in the collision pipeline to raise the DEBUG_DUMP flag automatically (e.g. when collision max iters has been exceeded).

The debug_dump_tester binary will load a target dump file and process a simulation step with the deserialized System.

Re-exports§

pub use collision::Collision;
pub use constraint::Constraint;
pub use force::Force;
pub use integrator::Integrator;
pub use object::Object;
pub use system::System;
pub use math_utils as math;

Modules§

collision
Collision detection and resolution
component
Components for use by entities.
constraint
Simulation constraint entities
event
Simulation events
force
Simulation force entities
geometry
Geometry utilities
integrator
Numerical integration
object
Simulation object entities.
system
Simulation model