Add Box3D physics for dynamic objects - #1307
Draft
kristiker wants to merge 1 commit into
Draft
Conversation
Simulates prop_physics / prop_physics_multiplayer / prop_physics_override through Box3D.NET: world_physics is pushed as a static compound shape, props become dynamic bodies built from their spheres, capsules and hulls, and the entity tick steps the world at 64 Hz. The player shoves props through a kinematic hull body (soft collision only, props never block movement), and E picks up the prop under the crosshair: rigid velocity tracking holds it centered on the mass center in front of the eyes, glued to the view per frame while unblocked, with a smooth attach glide and full velocity inheritance on release. Friction, elasticity, density and impact sounds are data driven from surfaceproperties.vsurf, matched hash-to-hash with each shape's surface property and played off Box3D contact hit events.
kristiker
marked this pull request as draft
August 17, 2026 11:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Source2Viewer_SC4NTT8INW.mp4