# Something to push around

> Props are physical now, the physics gun and gravity gun hold them the way Garry's Mod does, and dying leaves a ragdoll behind.

Posted November 2026.

![The horned Evil Engine e](https://evil-engine.com/_app/immutable/assets/evil-e.CTsxQnr_.png)

[Walking around gm_construct](/devlogs/walking-around-gm-construct) ended on "there's nothing to push around yet".
Well... there is now.

## Props

Props simulate in Jolt, inside Evil Engine's own fork of Godot.
Godot can't step a single physics space by hand, so the fork got a patch that steps the session's own space once a tick.

- Each prop weighs what its `.phy` says, and the hull volumes the engine measures match the `.phy`'s own to 4 decimal places
- Every Source map gets Garry's Mod's gravity, 15.24 m/s² (Gmod's 600 units a second squared)
- Each part of a collider has its own surface, so a box dropped on gm_construct's displacements lands on grass and one on the beach lands on sand
- Props float on gm_construct's lake. The melon bobs, and the drum and crate ride high

## You and the props

You can walk into a drum and shove it, and a crate dropped on your head stays there.

Gmod only carries you around on things.
Here it goes both ways, by mass: stand on a moving, spinning or rising platform and you ride it in its frame and keep its speed into a jump, and jumping or walking off a body pushes it back.
A light prop barely nudges you and a heavy one actually knocks you, through a stand-in body with your own mass.

All of that is checked headless with `just movement-check --props`, so a change that breaks it fails the check.

## The physics gun

You spawn holding it, the same as in Sandbox.

To get it right I wrote an oracle, a script that plays the physics gun and gravity gun in Garry's Mod by sending the player's own inputs (buttons, mouse counts, wheel notches, turns), and logs every prop, every hook the guns call and every sound, every tick.
What it found became the spec, and the guns were built from that.

- **Hold.** Each tick the prop keeps about a fifth of its speed and closes the rest of the gap over `physgun_timeToArrive`. Mass doesn't matter, a 10 kg prop and a 600 kg one follow the same
- **Wheel.** 10 units a notch, never nearer than 40
- **Rotate.** Use and the mouse turn it a twentieth of a degree a count, and sprint snaps it to the nearest 45° on every axis
- **Freeze.** Right click freezes it where it is. Reload thaws one, and two reloads at nothing within a quarter second thaw everything you froze (the oracle's two presses 0.24 s apart did it, 0.4 s apart did nothing)
- **Let go.** The prop keeps the speed it had, so you can still fling stuff

The beam is a thin electric ribbon crackling round a hot core, in your weapon colour, and the world model takes your weapon colour too.
The view model rests on its `draw` sequence with the prongs folded the way Gmod's does, and its outline lands within 3 pixels of Garry's Mod's own frames.

## The gravity gun

Hold Alt on the physics gun and a mode picker opens, and the gravity gun is its second mode.
Every weapon or mode change lowers the old view model and raises the new one, and every view model sways a little with your look and movement (`cl_viewmodel_sway` if you hate that).

It plays the way Garry's Mod plays it too:

- Right click picks up anything in 250 units, even just off your aim, and pulls things from farther. Over 250 kg or frozen, it refuses
- What you carry sits on your aim at a distance set by its size
- Left click launches it at 1,500 units a second, easing down toward 700 the heavier it gets, or punts whatever you're aiming at with nothing held
- Its pickup, drop, launch and too-heavy sounds, claws and view punches are the game's own

## Ragdolls

Dying turns you (or an NPC) into a ragdoll built from the model's own `.phy` joints, posed exactly how you died, carrying your speed and pushed where the killing hit landed.
Every bone's starting pose matches the drawn model to 0.000 mm, so nothing jumps when the body swaps over.
The death camera follows it, and it goes away when you respawn.

## None of it is in the engine

The physics gun isn't part of Evil Engine.
It lives in `evil.source`, the Plugin that holds Source's own systems, which loads with a session when Gmod is mounted.
The engine just gives Plugins bodies, traces, weapons and a holder to work with, and has no clue what a physics gun is.

That's the whole point: if the physics gun can be built as a Plugin, so can everything else.

## What's next

- There's no spawn menu or undo yet, so props come in through the console for now (`spawn models/props_c17/oildrum001`)
- The map's own physics props are still frozen in place
- No impact or scrape sounds yet, no hold hum on the gravity gun, and no "Unfrozen N objects" text

Next up are the Half-Life 2 weapons, which are mostly built already ngl... that's its own post.

---

- [Older: Back to Garry's Mod](/devlogs/back-to-garrys-mod)
- [Newer: It's over.](/devlogs/goodbye)
