Volt (VPhysics Jolt) is a replacement for Source's VPhysics which uses IVP/Havok
Created by Joshua Ashton (πΈβ¨) @phys_ballsocket and Josh Dowell (Slartibarty) @Slartbarty.
Volt is designed to be incredibly high performance, supporting thousands of objects at once without bringing tick/framerate down to a crawl.
In our testing, the performance overhead from having thousands of objects moving at once, now comes from the client code needing to update/render, as going out of the PVS of these objects will still cause them to be simulated, but will no longer be rendered.
Volt is mostly feature complete, but is missing some things such as support for raycast vehicles, breakable constraints, and perhaps other things we've missed!
It is our goal to implement any missing features at some point.
Below is a feature table of Volt vs VPhysics and the Bullet VPhysics project. If we missed anything we don't support or we do, feel free to add to it. It is not meant to be a bash on anyone elses work however, the Bullet VPhysics project was a great inspiration to us!
Feature | VPhysics | Volt (VPhysics Jolt) | Bullet VPhysics |
---|---|---|---|
Constraints (except Pulleys) | βοΈ | βοΈ | βοΈ |
Pulleys | βοΈ | β | β |
Breakable constraints | βοΈ | β | β |
Motors (Motion Controllers) | βοΈ | βοΈ | βοΈ |
Motors (Constraint) | βοΈ | βοΈ | β |
Ragdolls | βοΈ | βοΈ (some bugs) | βοΈ |
Triggers | βοΈ | βοΈ | β |
Object touch callbacks | βοΈ | βοΈ | β |
Prop damage/breaking | βοΈ | βοΈ | β |
Fluid events | βοΈ | βοΈ | β |
Prop splashing effects | βοΈ | βοΈ | β |
Wheeled Vehicles | βοΈ | βοΈ | βοΈ |
Raycast Vehicles (ie. Airboat) | βοΈ | β | γ°οΈ (janky) |
NPCs/Doors (Shadow Controllers) | βοΈ | βοΈ | βοΈ |
Save/Restore Support | βοΈ | βοΈ | β |
Portal Support | βοΈ | βοΈ | β |
Game per-object collide callback support eg. no-collide |
βοΈ | βοΈ | β |
Crash-resistant solver | β | βοΈ | (no data) |
Supports thousands of objects without lag | β | βοΈ | β |
Multithreaded | β | βοΈ | βοΈ (partially) |
Proper player controller | βοΈ | β (needs work!) | βοΈ (partially) |
VPhysics Jolt is not without its flaws, however. See the issue tracker for bugs that are known.
There are definitely going to be bugs that we don't know about or haven't encountered, or different quirks across engine branches.
The Volt code is provided as-is, it is up to you to build it for your SDK, etc.
Volt should build fine against Source SDK 2013 and Alien Swarm SDK on a MSVC or GCC compiler with at least C++20 support.
If you are building directly against the public SDK 2013 and Alien Swarm SDKs, you will need to do minor work to memoverride.cpp to make it compatible with the newer compilers and newer Windows SDKs.
Unfortunately we cannot redistribute the additional code/headers needed to build Volt for games such as Garry's Mod which uses a different VPhysics interface (CS:GO's) to what is found in the Valve-provided public SDKs.
For each release, binary builds are provided for Garry's Mod and Source SDK 2013 on the Releases page.
Have some cool media of stuff going on in Volt you'd like to add? Feel free to make a pull request!