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.
This recipe assumes that you have the example project and the level I provided (MeshingAnExampleMap
) opened.
With that in mind, let's learn how we can breathe some life into our static meshes:
Select a static mesh inside your level, such as the SM_Chair
object we have placed in the fireplace.
Once selected, go to the Details tab and under Physics, check Simulate Physics.
Once finished, go in and play the game.
At this point, if you run into the chair or shoot at the object, they will react correctly, according to physics.
Note
You may also want to make a static mesh movable for something such as moving platforms and the like...