Language:
Page Info
Skill Level:
Engine Version:

Physical Materials User Guide

Choose your OS:

This document will cover the creation and usage of Physical Materials as well as enabling or editing SurfaceTypes for your project.

Creation

  1. From the Content Browser. click button_CB_NewAsset.png New Asset -> Physics -> Physical Material or right-click in the Content Browser -> Physics -> Physical Material.

    PhysMatCreate.jpg

  2. Double click the new Physical Material to edit its properties.

    PhysMatProperties.jpg

  3. Adjust Properties.

    AdjustProperties.jpg

  4. Click Save icon_SaveAsset_40x.png

See the Physical Material Reference for information on the properties in the Physical Material.

Surface Type

By default, Unreal Engine 4 supports 62 Surface Types, which can be labeled anything you desire, stored in your project's DefaultEngine.ini, which can be found in YourProjectRoot\Config\DefaultEngine.ini.

Usage

Material

  1. Open or create a new Material.

    PhysMat_Material_01.png

  2. Select the main material node.

    PhysMatNone.jpg

  3. Change the Physical Material.

    PhysMatGlass2.jpg

Material Instance

  1. Open or create a new Material Instance.

    PhysMat_MaterialInst_01.png

  2. Change the Physical Material.

    StoneMat.jpg

Physics Asset (SkeletalMeshes)

When adjusting the Physical Material for a Physics Asset, it is best to start by assigning the most commonly used Physical Material to all of the Physics Bodies in the Physics Asset.

  1. Open a Physics Asset in the Physics Asset Tool.

    PhysicsAsset1.jpg

  2. Select a Physical Material in the Content Browser.

    M_Glass.jpg

  3. In the Physics Asset Tool, click the Apply PhysMat button from the Asset dropdown in the toolbar: AssetButton.jpg.

    ApplyPhysMat.jpg

If specific Physics Bodies need differing Physical Materials, you can then adjust them individually.

  1. Enable Body Edit Mode in the Physics Asset Tool.

  2. Select a Physics Body.

  3. In the Details pane, in the Physics Category, change the Simple Collision Physical Material.

SimpleCollision.png

The default behavior for Physics interactions with Skeletal Meshes is to only interact with its associated Physics Asset, so the Skeletal Mesh's material's Physical Material will not be used.

With Physics Assets, though you are setting the Simple Collision Physical Material, when you trace against a Physics Asset, you will need to do a complex trace and the complex trace will return the Physical Material listed in the Simple Collision Physical Material property of the hit Physics Body.

StaticMeshes

StaticMeshes have both Simple collision (the Physics Bodies that you create in your 3D art package or in the StaticMesh Editor) and Complex collision (per poly collision) which can be composed of a number of different materials each with their own differing Physical Materials.

Collision

Physical Material Order

Simple

When any collision or trace uses Simple Collision, it will reference the Physical Material on the StaticMesh that is set in the StaticMesh Editor, or if the Phys Material Override on the StaticMesh Actor is set to something other than None, it will use what is listed in that property.

Complex

When any collision or trace uses Complex Collision, it will reference the Physical Material on the Material or Material Instances applied to the StaticMesh Actor, or if the Phys Material Override on the StaticMesh Actor is set to something other than None, it will use what is listed in that property.

To set the Simple Collision Physical Material for a StaticMesh:

  1. Double Click a Static Mesh in the Content Browser to bring up the Static Mesh Editor.

    PhysMat_StaticMeshEd_01.png

  2. Change the Simple Collision Physical Material property in the Static Mesh Settings category to the desired Physical Material.

    PhysMat_StaticMeshEd_02.png

  3. Click Save icon_SaveAsset_40x.png.

Misc

PhysMat_Override.png

The Phys Material Override property exists on everything with a Physics category. This can be used to completely override Simple Collision Physical Materials on an Actor or Component with the selected Physical Material.

  • Overriding a StaticMesh's simple collision Physical Material.

  • Since Skeletal Meshes Physics Assets always return Simple Collision, you can use this to override all Physical Materials on a placed Skeletal Mesh Actor.

This has no effect on Complex Collision traces.