Anvil Physics brings the Box3D solver to Unity as a first-class citizen: one native core, two APIs, and the same deterministic result on every run.Use it the way your project is built. Drop AnvilBody onto a GameObject and it behaves like a rigid body you already know. Or go wide with DOTS and drive tens of thousands of bodies from Burst-compiled systems. Both paths share the same solver, the same settings asset and the same debugging tools, so a prototype built on GameObjects does not have to be rewritten when it grows into an ECS project.WHY IT IS FASTThe solver is native C, stepped through Unity's job system with a worker count that matches your machine. Nothing is allocated on the managed heap during a step, so there is no garbage collection spike in the middle of gameplay. Bodies that stop moving go to sleep and stop costing anything at all. On CPUs with AVX2 the contact solver and hull collision handle eight constraints at a time instead of four, picked when the game starts. That makes every step faster, and the simulation stays bit-identical to the four-wide path.Measured on a Ryzen 7 7700X (16 cores), Unity 6000.6.0f1, Anvil 1.2.0, 600 steps after 60 warm-up steps, identical seed, identical 1/60 time step, 4 sub-steps, rendering disabled:5,000 falling boxes, median step timeAnvil (DOTS): 1.08 msAnvil (GameObjects): 1.43 msBuilt-in PhysX: 4.04 msUnity Physics: 4.62 ms1,000 falling boxes, median step timeAnvil (DOTS): 0.38 msAnvil (GameObjects): 0.47 msBuilt-in PhysX: 0.71 msUnity Physics: 1.21 msManaged allocations per step: 0 bytes for every engine above.These are medians, and that choice matters. Anvil puts a settled pile to sleep, so more than a third of the samples in a 600-step run cost almost nothing; averaging them would flatter us. On the same runs the mean for Anvil is 0.78 ms where the median is 1.08 ms, while for Unity Physics the two barely differ. Quoting the mean would buy us a "5x faster" headline that your own measurement would not reproduce. Each figure is also the slower of two runs for Anvil and the faster of two runs for the other engines.By the median, at 5,000 boxes the DOTS path is 3.7x faster than built-in PhysX and 4.3x faster than Unity Physics; the GameObject path is 2.8x and 3.2x. Sleeping is then a separate win on top of the raw speed: after 371 steps the Anvil pile costs nothing at all, while Unity Physics was still simulating every box and PhysX still had 4,823 of them awake.At 20,000 boxes the same test gives 6.13 ms on the DOTS path and 7.85 ms on GameObjects, against 17.98 ms for Unity Physics and 22.77 ms for built-in PhysX.The benchmark that produced these numbers ships with the package, so you can reproduce them on your own hardware instead of taking our word for it. Run Tools > Anvil > Benchmarks, pick the engines and body counts, and the results land in a CSV and a JSON file with your CPU, GPU and Unity version recorded in the header, alongside the seed, the fixed step and the sub-step count, so a run can be compared against another.WHAT YOU GETRigid bodies with box, sphere, capsule, convex hull, mesh and height-field shapes, sized to the object's mesh the moment you add them, and shared physics material assets. Nine kinds of joints, each with a typed handle that reads and changes every setting and measured value while the game runs. Sensors and trigger events. Ray, shape and overlap queries callable from Burst jobs. Contact events carrying impulse and normal, so hit reactions and audio can respond to how hard something actually landed. Debris helpers and explosion impulses for destruction. A collision layer matrix that reads like Unity's own. Wind: one wind velocity on the world, and only the bodies you opt in feel it, so leaves and debris move in a storm while crates and dropped loot stay exactly where they are. Low-level collision and a bounding volume tree that work without a physics world, from Burst jobs too, for hitboxes, custom controllers and your own spatial queries.GAMEPLAY SYSTEMSSnapshots capture and restore the whole world for rollback netcode, replays and save points, and a state hash finds the frame where two clients diverge. Fracture cuts a mesh into Voronoi pieces out of the volume it encloses, so a character built from separate parts breaks along its own silhouette instead of turning into a block, and welded pieces crack under a load that scales with the object, whatever its mass. Ragdolls build themselves from a Humanoid avatar. Force fields, debris that settles and despawns within a budget, impact sounds and effects with throttling, one-way platforms, collision groups and contact events on the body with handler interfaces round it out. Structural support keeps a shattered building standing until its base is knocked out, then whatever lost its support comes down as welded chunks. Already cut your pieces in RayFire, Blender or Houdini? Tools > Anvil > Import Fracture Pieces brings them into Anvil's fracture, concave pieces included, so the tool that cut them is not needed in the game. Every one of them works on GameObjects and in ECS.CHARACTERS, VEHICLES AND NETCODEThe dynamic character is a real rigid body on a spring: it shoves crates, gets knocked back, climbs stairs without touching them, stands on ledges, rides platforms, and comes with coyote time, jump buffering, crouching and an Animator bridge. Ray cast vehicles are one body and a ray per wheel, with suspension, tyre grip, steering and brakes. AvRollbackSession runs the rollback loop for you on any transport: it predicts inputs, rewinds, replays and checks hashes, and two peers stay bit-identical. All of it works on GameObjects and in ECS, except rollback, which runs on any world you drive yourself. A server-authoritative game gets Netcode for Entities support: the server simulates, clients predict their ghosts and roll back to each snapshot, with bodies, characters and vehicles replicated.COMING FROM PHYSX AND UNITY PHYSICSTwo converters, one for each engine you might be leaving. Window > Anvil > Convert PhysX to Anvil scans a scene or a selection, lists every body it can convert, and replaces it with an Anvil body in one undoable step. Motion type, mass, gravity, both damping values, constraints, interpolation, collision layer, trigger flag and physics material are carried over. Anything it cannot convert is listed with the reason instead of being silently skipped, so a compound collider or a joint never turns into a half-migrated body you find out about at runtime.Window > Anvil > Convert Unity Physics to Anvil does the same for DOTS projects built on PhysicsBodyAuthoring and PhysicsShapeAuthoring, carrying over motion type, mass, gravity factor, both damping values, smoothing, friction and restitution (including values inherited from a material template), the collision-response flag and the belongs-to layer. Shapes it cannot represent, a capsule that does not run along Y, a compound, a body another joint depends on, are refused by name rather than half-converted.Mass survives the trip exactly in both converters, boxes, spheres, capsules and convex hulls alike: density is fitted to the shape, and the resulting body mass is then pinned to the source value, so a 7.5 kg crate is still 7.5 kg after conversion. Density continues to drive how the inertia is distributed, which is what you want when the hull the solver cooks is not the mesh you handed it.DETERMINISMSame input, same result, on the same build and the same platform, including two machines where one has AVX2 and the other does not. The recording API captures a session and replays it, which turns a physics bug from an anecdote into something you can step through.SUPPORTQuestions and bug reports go to our Discord, where fixes are discussed in the open and ship in the next version on the Asset Store. The package tells you in the editor when a newer version is available. Buyers who verify their invoice number on the Discord server get a channel where fixes are discussed and tested before they are published; the package itself never checks a licence, never phones home for permission to run, and works fully offline.The manual and its guides are in English, Simplified Chinese, Japanese and Korean, both inside the package and on the documentation site. The generated API reference, the editor UI and support are in English.CREDITSThe solver is Box3D by Erin Catto, the author of Box2D, used under the MIT licence and redistributed in binary form inside the native plugin: https://github.com/erincatto/box3dAnvil is the Unity side of it - the C# facade, the GameObject and DOTS APIs, baking, editor tooling, converters, tests and documentation. Full notices ship in THIRD PARTY NOTICES.md.






