Rigid Bodies and Destruction
The rigid world simulates stacks, piles, machines, vehicles, debris and floating objects, and it is the hub of every Continuum scene: cloth, water, smoke, grains and flows all collide with its bodies and push them back.
Methods
- Soft-step TGS solver with sub-steps, in the style of Box2D v3 extended to 3-D: contacts and joints are springs with a stiffness and damping chosen per sub-step, which keeps tall stacks and heavy loads stable.
- Graph colouring and SIMD contact bundles: contacts are solved eight at a time without write conflicts, in parallel, with results bit-identical to the scalar path.
- Speculative contacts and continuous collision, so a steel ball at 300 m/s does not pass through a 4 cm wall.
- Contact caching and sleeping islands for large scenes at rest.
- Shapes: boxes, spheres, capsules, cylinders, convex hulls, compounds, triangle meshes, height fields and signed-distance shapes.
- Nine joint types (spherical, hinge, prismatic, fixed, distance, wheel, target, motor, D6) with limits, motors, springs and breaking, and an exact direct solver for joint trees.
- Ray-cast vehicles with a tyre model, buoyancy in water bodies and on waves, and Voronoi fracture driven by impacts and blasts.
- Blasts: a charge in kilograms of TNT is a pressure wave (Kinney–Graham overpressure, Friedlander pulse, reflection at the surfaces facing it), delivered as the exact impulse of the pulse whatever the step.
In Divooka
| Available in Divooka | Planned |
|---|---|
Ground, Box, Sphere, Cylinder, Capsule, MeshBody (static exact, moving as convex hull); Rotated, RotatedAbout, Launched, Coloured; Breakable (Voronoi fracture by a blow or a blast) and AddTiledSlab (ground laid as breakable tiles); static, dynamic and kinematic motion; density, friction, restitution |
joints and motors; vehicles; pre-fractured assemblies; signed-distance shapes for concave moving bodies; compound bodies |
Detonate as a trigger action or a session action; Push, Release, Remove, MoveKinematic, MoveKinematicPose, RemoveBody |
contact queries and ray casts as nodes |
| poses, velocities, paths and meshes from results and sessions |
Validation
| Test | Result |
|---|---|
| Pendulum (1 m rod) | period within 2 % of 2π√(L/g) |
| Restitution 0.5 from 2 m | bounce 0.4–0.6 m (e²h = 0.5 m) |
| Friction on a 25° slope | μ = 0.2 slides within 15 % of the analytic distance; μ = 0.8 holds |
| Floating box (500 and 800 kg/m³) | draft within 3 % of Archimedes |
| Steel ball 5 cm at 300 m/s against a 4 cm wall | does not tunnel |
| Shatter of a spinning box into 20 pieces | mass within 0.1 %, momentum within 1 % |
| 150 boxes on 1 and 4 threads; SIMD against scalar | bit-identical |
Compared with BEPUphysics v2, the fastest managed rigid-body engine, Continuum is 1.5–2× slower on contact scenes on one thread at the same quality; its direct joint solver holds a chain's gaps to 0.02 mm against BEPU's 4.6 mm. Project Chrono 10 is 27–140× slower per frame on the same contact scenes.
Cost
Hundreds of bodies run in real time on a laptop CPU: a 468-domino spiral costs about 2 ms per frame, 320 mixed shapes pouring from a bin about 6 ms. A 1 000-box pile costs about 4 ms per step on one core.
Limits
- Contacts are soft: a few millimetres of penetration under load. For exact engineering contact use the FEM or robotics solvers.
- Fast dynamic–dynamic collisions rely on speculative contacts; continuous collision covers dynamic bodies against static geometry.
- Joint loops are solved iteratively and can stretch under very high loads; chains of equal break forces fail all at once.
- A charge exactly at a body's centre does not move it: the blast pushes surfaces that face it.
Sample scenes
rigid-pyramid, domino-spiral, mixed-pile, chain-bridge, vehicle-terrain, joint-showcase, blast-wall, glass-pane, demolition, harbor-blast.