O'Reilly logo

Unreal Engine Game Development Cookbook by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding life to static meshes

Though it is nice having a level with a lot of static meshes (this is by default), they don't move at all (hence, they are called static). Static meshes are used for efficiency's sake, but there comes a time where you want the player to be able to interact with those objects, such as moving crates or shooting at things.

Getting ready

This recipe assumes that you have the example project and the level I provided (MeshingAnExampleMap) opened.

How to do it…

With that in mind, let's learn how we can breathe some life into our static meshes:

  1. Select a static mesh inside your level, such as the SM_Chair object we have placed in the fireplace.
  2. Once selected, go to the Details tab and under Physics, check Simulate Physics.
  3. Once finished, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required