THREE.JS / FOUNDATIONS / AMMO VOLUME

Pressure keeps the volume alive.

This native Ammo study follows the pinned soft-body volume example: a sphere and a subdivided box keep their pressure while colliding with a ground plane, ramp, and thrown rigid balls.

Loading Ammo Preparing renderer

Preparing the native soft-body volume world...

physics
-
volumes
-
nodes
-
rigid bodies
-
balls
0
pressure
250 / 120
updates
0
sample
-
Volume controlssource-shaped native path
250
120

Click the scene or use Throw ball to follow the source ray/velocity path. Deterministic controls expose native pressure, collision, node, and normal behavior without claiming exact official texture, Stats, pixel, or whole-example fidelity.

Native contractAmmo/WASM soft-body volumes
CreateFromTriMeshsphere + subdivided box
set_kPRpressure 250 / 120
set_collisions(0x11)soft-soft + soft-rigid
get_m_nodes().at()position + native normals
stepSimulation10 substeps / frame

Direct Ammo bindings are used because the installed AmmoPhysics helper does not expose pressure-volume creation or soft-body configuration.

Based on the pinned official Ammo volume example. This is a native behavior lab with deterministic controls, not a claim of exact official page, texture, Stats, pixel, device/perf/stress, or whole-example fidelity.

THREE.JS FOUNDATIONS LAB