Skip to main content

Physics Simulation in Hammer

This guide will teach you how to simulate physics with your Hammer meshes/models.

info

For the physics engine inside Hammer to simulate, the object needs to have convex collisions. If not, the simulation will not run.


Physics Simulation with Models

  1. Add a model to the world (can be any type of prop entity, e.g., prop_static, prop_dynamic, prop_physics).
    hammerphysmeshes_models1

  1. Open the simulation tool or press Shift + C in case there is no Hammer icon (this happens in SteamVR).
    hammerphysmeshes_models2

  1. Press Space to run the simulation.

  1. Press Space to run stop the simulation.

Fix Some Props That Cannot Run in the Physics Simulation

Many times when running the physics simulation, a message appears saying:
hammerphysmeshes_models5

This can be fixed if the collision mesh is set to convex collision.

Games with ModelDoc Editor
TODO
Games with Model Editor (only Steam VR iconSteam VR)

In the Physic Meshes node, enable the convexify option.
hammerphysmeshes_models3
hammerphysmeshes_models4


Physics Simulation with Meshes

  1. Create a new mesh in your world.
warning

Mesh entities are not supported for physics simulation.

hammerphysmeshes_meshes1


  1. Open the property panel of the mesh (Alt+Enter) and set the collision to single convex hull or multiple convex hulls.
    hammerphysmeshes_meshes2
    hammerphysmeshes_meshes3

  1. Press Space to run the simulation.

  1. Press Space to run stop the simulation.