Coder Social home page Coder Social logo

vphysics-jolt's Introduction

VPhysics Jolt Logo

What is Volt? ⚑

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.

Features

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)

Bugs

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.

How to build

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.

Download

For each release, binary builds are provided for Garry's Mod and Source SDK 2013 on the Releases page.

Media

Lots of Melons + Dumpster

Lots of Melons + Dumpster

Physically Simulated Chain

Physically Simulated Chain

Lots of Balls Test

Lots of Balls Test

Wheels + Weld Car Dupe Test

Weld Car Dupe Test

Door + NPC (Physics Shadowed Objects) Test

Door + NPC (Physics Shadowed Objects) Test

Lots of Cubes + Ragdolls + Funnel

Lots of Cubes + Ragdolls + Funnel

Slow Mo Cubes

Slow Mo Cubes

Propane in Dumpster

Propane in Dumpster

Have some cool media of stuff going on in Volt you'd like to add? Feel free to make a pull request!

Projects using Volt

Portal 2: Desolation

Prelude: Online

Have fun! 🐸⚑

vphysics-jolt's People

Contributors

arthurdead avatar caseytube avatar jjl772 avatar joshua-ashton avatar slartibarty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.