Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- apply_
incremental_ update - Apply an incremental update to a snapshot.
- apply_
snapshot - Restore world state from a snapshot (positions and velocities only).
- build_
snapshot - Build a
SimulationSnapshotfromworldwithout serializing it. - compute_
incremental_ update - Compute an incremental update between two snapshots.
- compute_
pairwise_ distances - Compute pairwise distances between all body pairs from a snapshot. Returns a flat upper-triangular distance array.
- config_
from_ json - Deserialize a
PySimConfigfrom JSON. - config_
to_ json - Serialize a
PySimConfigto JSON. - deserialize_
body_ state_ json - Deserialize a
SimBodyStatefrom a JSON string produced byserialize_body_state_json. - export_
snapshot_ incremental - Stream-export a snapshot as a series of
ExportBatchobjects. - from_
json - Deserialize a
WorldStatefrom a JSON string (legacy). - load_
snapshot - Deserialize a
SimulationSnapshotfrom a JSON string. - merge_
export_ batches - Reconstruct a snapshot by merging export batches (in order).
- save_
snapshot - Serialize the current state of
worldinto a compact JSON string. - save_
snapshot_ pretty - Serialize the current state of
worldinto a pretty-printed JSON string. - serialize_
body_ state_ json - Serialize a
SimBodyStateto a JSON string viaBodyStateJson. - to_json
- Serialize a
PyPhysicsWorldto a JSON string (legacy). - validate_
snapshot - Validate a deserialized snapshot for consistency.
- validate_
snapshot_ json - Validate that a JSON string is a well-formed
SimulationSnapshot.