Skip to main content

Module functions

Module functions 

Source
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 SimulationSnapshot from world without 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 PySimConfig from JSON.
config_to_json
Serialize a PySimConfig to JSON.
deserialize_body_state_json
Deserialize a SimBodyState from a JSON string produced by serialize_body_state_json.
export_snapshot_incremental
Stream-export a snapshot as a series of ExportBatch objects.
from_json
Deserialize a WorldState from a JSON string (legacy).
load_snapshot
Deserialize a SimulationSnapshot from a JSON string.
merge_export_batches
Reconstruct a snapshot by merging export batches (in order).
save_snapshot
Serialize the current state of world into a compact JSON string.
save_snapshot_pretty
Serialize the current state of world into a pretty-printed JSON string.
serialize_body_state_json
Serialize a SimBodyState to a JSON string via BodyStateJson.
to_json
Serialize a PyPhysicsWorld to 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.